Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DynamicProperty.CreateSafe Method

Creates safe dynamic property instance for the specified PropertyInfo.

[Visual Basic]
Public Shared Sub CreateSafe( _
   ByVal property As PropertyInfo _
)
[C#]
public static IDynamicProperty CreateSafe(
   PropertyInfo property
);

Parameters

property
Property info to create dynamic property for.

Return Value

Safe dynamic property for the specified PropertyInfo.

Remarks

This factory method will create a dynamic property with a "safe" wrapper.

Safe wrapper will attempt to use generated dynamic property if possible, but it will fall back to standard reflection if necessary.

See Also

DynamicProperty Class | Spring.Reflection.Dynamic Namespace | SafeProperty