private string GetTypeName(ITypeReference typeInfo) { var result = NormalizeNamespace(typeInfo.GetQualifiedName(this)); if (typeInfo.IsCollection) { result = "List<" + result + ">"; } return(result); }
//private string ResolveNamespace() //{ // string value; // return GetMetaData().CustomMetaData.TryGetValue("Namespace", out value) // ? value // : FolderBasedNamespace; //} private string GetTypeInfo(ITypeReference typeInfo) { var result = NormalizeNamespace(typeInfo.GetQualifiedName(this)); if (typeInfo.IsCollection) { result = string.Format(GetCollectionTypeFormatConfig(), result); } // Don't check for nullables here because the type resolution system will take care of language specific nullables return(result); }
public static string GetQualifiedName(this ITypeReference typeInfo, IProjectItemTemplate template) { return(typeInfo.GetQualifiedName(template, TemplateIds.ClientDTO)); }
public static string GetQualifiedName <T>(this ITypeReference typeInfo, T template) where T : IProjectItemTemplate, IRequireTypeResolver { return(typeInfo.GetQualifiedName(template, TemplateIds.ClientDTO)); }