internal static string GetQualifiedName(IHxlQualifiedName helper) { if (string.IsNullOrEmpty(helper.Prefix)) { return(helper.Name); } else { return(string.Format("{0}:{1}", helper.Prefix, helper.Name)); } }
public static string GetProperty(this IHxlQualifiedName self) { if (self.Names.Count == 1) { return(null); } else { return(self.Names[1]); } }
internal static string GetFullName(IHxlQualifiedName helper) { StringBuilder sb = new StringBuilder(); foreach (var s in helper.Names) { sb.Append(":"); sb.Append(s); } if (string.IsNullOrEmpty(helper.Prefix)) { return(sb.ToString(1, sb.Length - 1)); } else { return(helper.Prefix + sb); } }