Méthode | Description | |
---|---|---|
GetPropertyInfo ( string propertyName ) : |
Returns PropertyInfo for the specified property
|
|
GetPropertyInfos ( ) : System.Reflection.PropertyInfo[] |
Get the properties of the wrapped object.
|
|
GetPropertyType ( string propertyName ) : |
Get the System.Type for a particular property.
|
|
GetPropertyValue ( IExpression propertyExpression ) : object |
Gets the value of a property.
|
|
GetPropertyValue ( string propertyName ) : object |
Gets the value of a property.
|
|
ObjectWrapper ( ) : System |
Creates a new instance of the Spring.Objects.ObjectWrapper class. The wrapped target instance will need to be set afterwards. |
|
ObjectWrapper ( |
Creates a new instance of the Spring.Objects.ObjectWrapper class, instantiating a new instance of the specified System.Type and using it as the Spring.Objects.ObjectWrapper.WrappedInstance. Please note that the System.Type passed as the type argument must have a no-argument constructor. If it does not, an exception will be thrown when this class attempts to instantiate the supplied type using it's (non-existent) constructor. |
|
ObjectWrapper ( object instance ) : System |
Creates a new instance of the Spring.Objects.ObjectWrapper class.
|
|
SetPropertyValue ( IExpression propertyExpression, object val ) : void |
Sets a property value.
|
|
SetPropertyValue ( Spring.Objects.PropertyValue pv ) : void |
Sets a property value. This is the preferred way to update an individual property. |
|
SetPropertyValue ( string propertyName, object val ) : void |
Sets a property value. This method is provided for convenience only. The Spring.Objects.ObjectWrapper.SetPropertyValue(PropertyValue) method is more powerful. |
|
SetPropertyValues ( IPropertyValues pvs ) : void |
Set a number of property values in bulk. Does not allow unknown fields. Equivalent to Spring.Objects.ObjectWrapper.SetPropertyValues(IPropertyValues, bool) with |
|
SetPropertyValues ( IPropertyValues propertyValues, bool ignoreUnknown ) : void |
Perform a bulk update with full control over behavior. This method may throw a reflection-based exception, if there is a critical failure such as no matching field... less serious exceptions will be accumulated and thrown as a single Spring.Objects.PropertyAccessExceptionsException. |
|
ToString ( ) : string |
This method is expensive! Only call for diagnostics and debugging reasons, not in production.
|
Méthode | Description | |
---|---|---|
GetPropertyExpression ( string propertyName ) : IExpression |
Attempts to parse property expression first and falls back to full expression if that fails. Performance optimization.
|
|
GetPropertyOrFieldInfo ( string propertyOrFieldName ) : |
Returns MemberInfo for the specified property or field
|
public GetPropertyInfo ( string propertyName ) : |
||
propertyName | string | The name of the property to search for. |
Résultat |
public GetPropertyInfos ( ) : System.Reflection.PropertyInfo[] | ||
Résultat | System.Reflection.PropertyInfo[] |
public GetPropertyType ( string propertyName ) : |
||
propertyName | string |
/// The property the |
Résultat |
public GetPropertyValue ( IExpression propertyExpression ) : object | ||
propertyExpression | IExpression | /// The property expression that should be used to retrieve the property value. /// |
Résultat | object |
public GetPropertyValue ( string propertyName ) : object | ||
propertyName | string | /// The name of the property to get the value of. /// |
Résultat | object |
public ObjectWrapper ( |
||
type |
/// The |
|
Résultat | System |
public ObjectWrapper ( object instance ) : System | ||
instance | object |
/// The object wrapped by this |
Résultat | System |
public SetPropertyValue ( IExpression propertyExpression, object val ) : void | ||
propertyExpression | IExpression | /// The property expression that should be used to set the property value. /// |
val | object | The new value. |
Résultat | void |
public SetPropertyValue ( Spring.Objects.PropertyValue pv ) : void | ||
pv | Spring.Objects.PropertyValue | /// The object containing new property value. /// |
Résultat | void |
public SetPropertyValue ( string propertyName, object val ) : void | ||
propertyName | string | /// The name of the property to set value of. /// |
val | object | The new value. |
Résultat | void |
public SetPropertyValues ( IPropertyValues pvs ) : void | ||
pvs | IPropertyValues |
/// The |
Résultat | void |
public SetPropertyValues ( IPropertyValues propertyValues, bool ignoreUnknown ) : void | ||
propertyValues | IPropertyValues |
/// The |
ignoreUnknown | bool | /// Should we ignore unknown values (not found in the object!?). /// |
Résultat | void |