public static string CSharpName(this Namespace @namespace, bool full = true)
 {
     return(@namespace.IsGlobal ? "(global)" : (full ? @namespace.FullName : @namespace.Name));
 }
コード例 #2
0
 public static string HumanName(this Namespace @namespace, bool full = true)
 {
     return(@namespace.IsGlobal ? "(Global Namespace)" : (full ? string.Join("/", @namespace.Parts.Select(p => p.Prettify()).ToArray()) : @namespace.Name.Prettify()));
 }
コード例 #3
0
 public static string SelectedName(this Namespace @namespace, bool human, bool full = true)
 {
     return(human ? @namespace.HumanName(full) : @namespace.CSharpName(full));
 }
コード例 #4
0
 public static string DisplayName(this Namespace @namespace, bool full = true)
 {
     return(SelectedName(@namespace, LudiqCore.Configuration.humanNaming, full));
 }