Пример #1
0
        public static ITypeDefinition GetDefinitionOrArrayType(this IType ce)
        {
            var def = ce.GetDefinition();

            if (def == null)
            {
                if (ce.Kind == TypeKind.Array)
                {
                    return(Cs.ArrayType(((ArrayType)ce).Compilation));
                }
            }
            return(def);
        }
Пример #2
0
        public static ITypeDefinition GetDefinitionOrArrayType(this IType ce, CompilerTool compiler)
        {
            var def = ce.GetDefinition();

            if (def == null)
            {
                if (ce.Kind == TypeKind.Array)
                {
                    return(Cs.ArrayType(compiler.Project));
                }
            }
            return(def);
        }