Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DynamicReflectionManager.CreateFieldSetter Method

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

[Visual Basic]
Public Shared Sub CreateFieldSetter( _
   ByVal fieldInfo As FieldInfo _
public static FieldSetterDelegate CreateFieldSetter(
   FieldInfo fieldInfo


the field to create the delegate for

Return Value

a delegate that can be used to read the field.


If the field's IsLiteral returns true, the returned method will throw an InvalidOperationException when called.

See Also

DynamicReflectionManager Class | Spring.Reflection.Dynamic Namespace