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)))); }
public override bool EqualsIgnoringParent(ObjectKey obj) { LocalKey other = obj as LocalKey; return(other != null && localKey == other.localKey); }
public override int CompareTo(ObjectKey obj) { return(DefaultCompareTo <LocalKey>(obj, other => localKey.CompareTo(other.localKey))); }
public object GetRealObject(StreamingContext context) { return(ObjectKey.Parse(serializedKey)); }
public override int CompareTo(ObjectKey obj) { return(DefaultCompareTo <GuidKey>(obj, SpecificTypeComparer)); }
public GlobalObjectKey(ObjectKey ownerKey, ObjectKey key) { this.OwnerKey = ownerKey; this.Key = key; }
public GlobalObjectKey(string ownerKey, string key) : this(ObjectKey.Parse(ownerKey), ObjectKey.Parse(key)) { }