- The mscorlib.dll is required by every .NET Application.
- We may use Invoke( ) method over an instance of type MethodBase to run it, passing the required parameter values as array of objects.
- PropertyInfo class supports GetValue( ) and SetValue( ) methods to get/set values of a specific property within a Type. We simple call the method on an object and supply it with the property name and any required parameters (such as an index number, in case of a Collection property).
- ConstructorInfo instances always return an object when invoked.
- When invoking static methods using Dynamic Code, pass null in the object parameter.
Showing posts with label PropertyInfo. Show all posts
Showing posts with label PropertyInfo. Show all posts
Sunday, August 9, 2009
Chapter 14-Lesson 4
Labels:
Dynamic Code,
GetValue,
mscorlib,
PropertyInfo,
SetValue
Subscribe to:
Posts (Atom)