コード例 #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))));
        }
 public object GetRealObject(StreamingContext context)
 {
     return(ObjectKey.Parse(serializedKey));
 }
コード例 #3
0
 public GlobalObjectKey(string ownerKey, string key) :
     this(ObjectKey.Parse(ownerKey), ObjectKey.Parse(key))
 {
 }