Cornerstone.Database.Tables.DBSetting.TypeLookup C# (CSharp) Method

TypeLookup() public static method

public static TypeLookup ( Type type ) : string
type System.Type
return string
        public static string TypeLookup(Type type)
        {
            if (type == typeof(int))
                return "INT";
            else if (type == typeof(float))
                return "FLOAT";
            else if (type == typeof(bool))
                return "BOOL";
            else if (type == typeof(string))
                return "STRING";

            return null;
        }