Exemple #1
0
 public static bool IsNullOrEmpty(ItemPathBase path)
 {
     if (path != null)
     {
         return(string.IsNullOrEmpty(path.Value));
     }
     return(true);
 }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
 public static string SafeEditSessionID(ItemPathBase path)
 {
     return(path?.EditSessionID);
 }
Exemple #5
0
 public static string SafeValue(ItemPathBase path)
 {
     return(path?.Value);
 }
Exemple #6
0
 public ExternalItemPath(string value)
     : this(value, ItemPathBase.GetEditSessionID(value))
 {
 }
Exemple #7
0
 public CatalogItemPath(string value)
     : base(ItemPathBase.GetLocalPath(value))
 {
     m_originalValue = value;
 }