Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DynamicReflectionManager.CreatePropertySetter Method

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

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

Parameters

propertyInfo
the property to create the delegate for

Return Value

a delegate that can be used to write the property.

Remarks

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

See Also

DynamicReflectionManager Class | Spring.Reflection.Dynamic Namespace