public string ConvertType(IType type) { if (type == null) { throw new ArgumentNullException("type"); } TypeSystemAstBuilder astBuilder = CreateAstBuilder(); AstType astType = astBuilder.ConvertType(type); return(astType.ToString()); }
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()); }