clojure.lang.CljCompiler.Ast.FnMethod.TypeChar C# (CSharp) Метод

TypeChar() публичный статический Метод

public static TypeChar ( object x ) : char
x object
Результат char
        public static char TypeChar(object x)
        {
            //Type t = null;
            //if (x is Type)
            //    t = (Type)x;
            //else if (x is Symbol)
            //    t = Compiler.PrimType((Symbol)x);
            Type t = x as Type ?? Compiler.PrimType(x as Symbol);

            if (t == null || !t.IsPrimitive)
                return 'O';
            if (t == typeof(long))
                return 'L';
            if (t == typeof(double))
                return 'D';
            throw new ArgumentException("Only long and double primitives are supported");
        }