public static string CSharpName(this Namespace @namespace, bool full = true) { return(@namespace.IsGlobal ? "(global)" : (full ? @namespace.FullName : @namespace.Name)); }
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())); }
public static string SelectedName(this Namespace @namespace, bool human, bool full = true) { return(human ? @namespace.HumanName(full) : @namespace.CSharpName(full)); }
public static string DisplayName(this Namespace @namespace, bool full = true) { return(SelectedName(@namespace, LudiqCore.Configuration.humanNaming, full)); }