コード例 #1
0
        public static GlobalObjectKey Parse(string str)
        {
            if (string.IsNullOrEmpty(str) || str == " ")
            {
                return(null);
            }

            int pos = str.IndexOf(Separator);

            return(new GlobalObjectKey(
                       ObjectKey.Parse(str.Substring(0, pos)),
                       ObjectKey.Parse(str.Substring(pos + 1))));
        }
コード例 #2
0
        public override bool EqualsIgnoringParent(ObjectKey obj)
        {
            LocalKey other = obj as LocalKey;

            return(other != null && localKey == other.localKey);
        }
コード例 #3
0
 public override int CompareTo(ObjectKey obj)
 {
     return(DefaultCompareTo <LocalKey>(obj, other => localKey.CompareTo(other.localKey)));
 }
 public object GetRealObject(StreamingContext context)
 {
     return(ObjectKey.Parse(serializedKey));
 }
コード例 #5
0
 public override int CompareTo(ObjectKey obj)
 {
     return(DefaultCompareTo <GuidKey>(obj, SpecificTypeComparer));
 }
コード例 #6
0
 public GlobalObjectKey(ObjectKey ownerKey, ObjectKey key)
 {
     this.OwnerKey = ownerKey;
     this.Key      = key;
 }
コード例 #7
0
 public GlobalObjectKey(string ownerKey, string key) :
     this(ObjectKey.Parse(ownerKey), ObjectKey.Parse(key))
 {
 }