Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

PropertyPathFactoryObject.PropertyPath Property

The property (lookup) path to be applied to the target object.

[Visual Basic]
Public WriteOnly Property PropertyPath() As String
   Public Set
   End Set
End Property
[C#]
public string PropertyPath { public set; }

Property Value

The property (lookup) path to be applied to the target object.

Remarks

Please note that any leading or trailing whitespace will be trimmed from this path prior to resolution. Whitespace is not a valid identifier for property names (in part or whole) in CLS-based languages, so this is a not unreasonable action. Please also note that whitespace that is embedded within the property path will be left as-is (which may or may not result in an error being thrown, depending on the context of the whitespace).

Example

Examples of such property lookup paths can be seen below; note that property lookup paths can be nested to an arbitrary level.

name.length
accountManager.account['the key'].name
accounts[0].name

See Also

PropertyPathFactoryObject Class | Spring.Objects.Factory.Config Namespace