Ejemplo n.º 1
0
        public string ConvertType(IType type)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

            TypeSystemAstBuilder astBuilder = CreateAstBuilder();
            AstType astType = astBuilder.ConvertType(type);

            return(astType.ToString());
        }
Ejemplo n.º 2
0
        public string ConvertType(IType type)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

            TypeSystemAstBuilder astBuilder = CreateAstBuilder();

            astBuilder.AlwaysUseShortTypeNames = (ConversionFlags & ConversionFlags.UseFullyQualifiedEntityNames) != ConversionFlags.UseFullyQualifiedEntityNames;
            AstType astType = astBuilder.ConvertType(type);

            return(astType.ToString());
        }