Creates an item instance from the specified values collection.
Namespace: SimolAssembly: Simol (in Simol.dll) Version: 1.0.0.0
Syntax
C# |
---|
public static Object CreateItem( Type itemType, PropertyValues values ) |
Visual Basic |
---|
Public Shared Function CreateItem ( _ itemType As Type, _ values As PropertyValues _ ) As Object |
Visual C++ |
---|
public: static Object^ CreateItem( Type^ itemType, PropertyValues^ values ) |
Parameters
- itemType
- Type: System..::..Type
Type of the item to return.
- values
- Type: Simol..::..PropertyValues
The property values.
Return Value
A new item or null if the value collection is nullRemarks
Unmapped property values are silently discared. Property values
that are mapped but fail conversion will cause an exception.