ConnectorDataItemClassGetProperty Method | |
Gives a property from object properties
Namespace:
SOWIData.Database
Assembly:
SOWIData (in SOWIData.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax public static Object GetProperty(
Object pObject,
string pPropertyName
)
Public Shared Function GetProperty (
pObject As Object,
pPropertyName As String
) As Object
Parameters
- pObject
- Type: SystemObject
Object with properties - pPropertyName
- Type: SystemString
A public property name form object properties
Return Value
Type:
Objecta property object
Remarks
If property value equal a null then
gives by type of Double and Int32 value 0 back
and gives by type of Boolean value false back
and gives by type of Nullable types a null back
and all the rest an empty string
Examples
Use example reading a field property from table for table sorting in LINQ
orderby GetProperty(p, SortField)
See Also