Mono.TypeExtensions.GetTypeCode C# (CSharp) Méthode

GetTypeCode() public static méthode

public static GetTypeCode ( this type ) : TypeCode
type this
Résultat TypeCode
        public static TypeCode GetTypeCode(this Type type)
        {
            #if NET_CORE
            if (type == null)
                return TypeCode.Empty;

            TypeCode code;
            if (!TypeCodeMap.TryGetValue (type, out code))
                return TypeCode.Object;

            return code;
            #else
            return Type.GetTypeCode (type);
            #endif
        }