public static bool IsNullOrEmpty(ItemPathBase path) { if (path != null) { return(string.IsNullOrEmpty(path.Value)); } return(true); }
public static int CatalogCompare(ItemPathBase a, ItemPathBase b) { int num = Localization.CatalogCultureCompare(SafeValue(a), SafeValue(b)); if (num == 0) { return(string.CompareOrdinal(SafeEditSessionID(a), SafeEditSessionID(b))); } return(num); }
public static int CatalogCompare(ItemPathBase a, string b) { int num = Localization.CatalogCultureCompare(SafeValue(a), b); if (num == 0 && a != null && a.IsEditSession) { return(1); } return(num); }
public static string SafeEditSessionID(ItemPathBase path) { return(path?.EditSessionID); }
public static string SafeValue(ItemPathBase path) { return(path?.Value); }
public ExternalItemPath(string value) : this(value, ItemPathBase.GetEditSessionID(value)) { }
public CatalogItemPath(string value) : base(ItemPathBase.GetLocalPath(value)) { m_originalValue = value; }