Esempio n. 1
0
 internal static string MakeDescription(AnalysisValue type, string typeName, IAnalysisSet indexTypes)
 {
     if (type.Push())
     {
         try {
             if (indexTypes == null || indexTypes.Count == 0)
             {
                 return(typeName);
             }
             else if (indexTypes.Count == 1)
             {
                 return(typeName + " of " + indexTypes.First().ShortDescription);
             }
             else if (indexTypes.Count < 4)
             {
                 return(typeName + " of {" + string.Join(", ", indexTypes.Select(ns => ns.ShortDescription)) + "}");
             }
             else
             {
                 return(typeName + " of multiple types");
             }
         } finally {
             type.Pop();
         }
     }
     return(typeName);
 }
Esempio n. 2
0
 internal static string MakeDescription(AnalysisValue type, string typeName, IAnalysisSet indexTypes) {
     if (type.Push()) {
         try {
             if (indexTypes == null || indexTypes.Count == 0) {
                 return typeName;
             } else if (indexTypes.Count == 1) {
                 return typeName + " of " + indexTypes.First().ShortDescription;
             } else if (indexTypes.Count < 4) {
                 return typeName + " of {" + string.Join(", ", indexTypes.Select(ns => ns.ShortDescription)) + "}";
             } else {
                 return typeName + " of multiple types";
             }
         } finally {
             type.Pop();
         }
     }
     return typeName;
 }