SerializationUtilsInfoGetInt32 Method (SerializationInfo, String, Int32) |
Will try to read the value for the field named as the name specified in fieldName.
If the field doesn't exist, 0 is returned.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax public static int InfoGetInt32(
SerializationInfo info,
string fieldName,
int defaultValue
)
Public Shared Function InfoGetInt32 (
info As SerializationInfo,
fieldName As String,
defaultValue As Integer
) As Integer
Parameters
- info
- Type: System.Runtime.SerializationSerializationInfo
info structure which values. - fieldName
- Type: SystemString
name of field to read. Must be boolean field - defaultValue
- Type: SystemInt32
the value to return if the value to deserialize isn't found
Return Value
Type:
Int32the value read from info, otherwise false
See Also