示例#1
0
 public static IGeneralGenericTypeUniqueIdentifier GetTypeIdentifier(string @namespace, string name, int typeParameters)
 {
     if (string.IsNullOrEmpty(@namespace))
     {
         return(GetTypeIdentifier((IGeneralDeclarationUniqueIdentifier)null, name, typeParameters));
     }
     else
     {
         return(GetTypeIdentifier(TypeSystemIdentifiers.GetDeclarationIdentifier(@namespace), name, typeParameters));
     }
 }
示例#2
0
 public static IEnumerable <IGeneralDeclarationUniqueIdentifier> NamespacePathBreakdown(this string path, string separator = ".")
 {
     return(from element in path.IndicesOf(separator)
            select TypeSystemIdentifiers.GetDeclarationIdentifier(element.Current == -1?path : path.Substring(0, element.Current)));
 }