sdk/dotnet/src/Microsoft.Datasync.Client/Query/OData/TableLookupExtensions.cs
/// <summary>
/// Converts an object into the supported constant type.
/// </summary>
/// <param name="value">The reference value</param>
/// <returns>The <see cref="ConstantType"/></returns>
Converts an object into the supported constant type.
Converts an object into the supported constant type .
internal static ConstantType GetConstantType(this object value)
        {
            if (value == null)
            {
                return ConstantType.Null;
            }
            long handle = (long)value.GetType().TypeHandle.Value;
            if (ConstantTypeLookupTable.ContainsKey(handle))
            {
                return ConstantTypeLookupTable[handle];
            }
            else
            {
                return ConstantType.Unknown;
            }
        }
internal static ConstantType GetConstantType ( this object value ) { if ( value == null ) { return ConstantType . Null ; } long handle = ( long ) value . GetType ( ) . TypeHandle . Value ; if ( ConstantTypeLookupTable . ContainsKey ( handle ) ) { return ConstantTypeLookupTable [ handle ] ; } else { return ConstantType . Unknown ; } }
Converts an object into the supported constant type.
Converts an object into the supported constant type .
None
object
this
value
The reference value
The reference value