Horje
what is reflection in programming Code Example
what is reflection in programming
//Ability to access objects fields/methods (also if they are private)
// in run time (read more about the subjects pro`s and con`s before impl)

// Without reflection
Foo foo = new Foo();
foo.PrintHello();

// With reflection
Object foo = Activator.CreateInstance("complete.classpath.and.Foo");
MethodInfo method = foo.GetType().GetMethod("PrintHello");
method.Invoke(foo, null);




Csharp

Related
degree between two points latitude longitude c# Code Example degree between two points latitude longitude c# Code Example
find label controls in c# Code Example find label controls in c# Code Example
VideoPlayer.isPlaying Code Example VideoPlayer.isPlaying Code Example
weighted random c# Code Example weighted random c# Code Example
Reporting Progress from Async Tasks c# Code Example Reporting Progress from Async Tasks c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11