コード例 #1
0
 /// <summary>
 /// Returns the <see cref="bool"/> value of the property specified in <paramref name="propertyDef"/>.
 /// </summary>
 /// <param name="objVerEx">The object version to check.</param>
 /// <param name="propertyDef">The property definition Id.</param>
 /// <returns>The value of the property, or null if not set.</returns>
 public static bool?GetPropertyAsBoolean
 (
     this ObjVerEx objVerEx,
     int propertyDef
 )
 {
     return(objVerEx.GetPropertyAs <bool?>
            (
                propertyDef,
                MFDataType.MFDatatypeBoolean
            ));
 }
コード例 #2
0
 /// <summary>
 /// Returns the <see cref="int"/> value of the property specified in <paramref name="propertyDef"/>.
 /// </summary>
 /// <param name="objVerEx">The object version to check.</param>
 /// <param name="propertyDef">The property definition Id.</param>
 /// <returns>The value of the property, or null if not set.</returns>
 public static long?GetPropertyAsLong
 (
     this ObjVerEx objVerEx,
     int propertyDef
 )
 {
     return(objVerEx.GetPropertyAs <long?>
            (
                propertyDef,
                MFDataType.MFDatatypeInteger64
            ));
 }
コード例 #3
0
 /// <summary>
 /// Returns the <see cref="double"/> value of the property specified in <paramref name="propertyDef"/>.
 /// </summary>
 /// <param name="objVerEx">The object version to check.</param>
 /// <param name="propertyDef">The property definition Id.</param>
 /// <returns>The value of the property, or null if not set.</returns>
 public static double?GetPropertyAsDouble
 (
     this ObjVerEx objVerEx,
     int propertyDef
 )
 {
     return(objVerEx.GetPropertyAs <double?>
            (
                propertyDef,
                MFDataType.MFDatatypeFloating
            ));
 }
コード例 #4
0
 /// <summary>
 /// Returns the <see cref="int"/> value of the property specified in <paramref name="propertyDef"/>.
 /// </summary>
 /// <param name="objVerEx">The object version to check.</param>
 /// <param name="propertyDef">The property definition Id.</param>
 /// <returns>The value of the property, or null if not set.</returns>
 public static int?GetPropertyAsInteger
 (
     this ObjVerEx objVerEx,
     int propertyDef
 )
 {
     return(objVerEx.GetPropertyAs <int?>
            (
                propertyDef,
                MFDataType.MFDatatypeInteger
            ));
 }
コード例 #5
0
 /// <summary>
 /// Returns the <see cref="DateTime"/> value of the property specified in <paramref name="propertyDef"/>.
 /// </summary>
 /// <param name="objVerEx">The object to retrieve data from.</param>
 /// <param name="propertyDef">The property definition Id.</param>
 /// <returns>The value of the property, or null if not set.</returns>
 public static DateTime?GetPropertyAsDateTime
 (
     this ObjVerEx objVerEx,
     int propertyDef
 )
 {
     return(objVerEx.GetPropertyAs <DateTime?>
            (
                propertyDef,
                MFDataType.MFDatatypeDate,
                MFDataType.MFDatatypeTimestamp
            ));
 }