Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DynamicReflectionManager.CreatePropertyGetter Method

Create a new Get method delegate for the specified property using DynamicMethod

[Visual Basic]
Public Shared Sub CreatePropertyGetter( _
   ByVal propertyInfo As PropertyInfo _
)
[C#]
public static PropertyGetterDelegate CreatePropertyGetter(
   PropertyInfo propertyInfo
);

Parameters

propertyInfo
the property to create the delegate for

Return Value

a delegate that can be used to read the property.

Remarks

If the property's CanRead returns false, the returned method will throw an InvalidOperationException when called.

See Also

DynamicReflectionManager Class | Spring.Reflection.Dynamic Namespace