 |
DataInjectionInjectProperty Method (Object, String, Type, Object) |
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Injects a value to a property within a data object.
Namespace:
WeroSoft.Runtime
Assembly:
WeroSoft.Core.Library (in WeroSoft.Core.Library.dll) Version: 3.0 Pre-Release
Syntaxpublic static void InjectProperty(
this Object data,
string propertyName,
Type type,
Object value
)
Parameters
- data
- Type: SystemObject
Data object on which a property shall be set. - propertyName
- Type: SystemString
Name of the property whose data shall be injected. - type
- Type: SystemType
Type which the requested property is returning. - value
- Type: SystemObject
Value which shall be injected.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks
Use this method if a type is redefining a property by new using another
type than the base type.
See Also