Пример #1
0
 public void Deserialize(string value, XNameValueCollection parameters)
 {
     Email  = value.Substring(value.IndexOf(':') + 1);
     Name   = parameters["CN"];
     SentBy = parameters["SENT-BY"];
     if (!string.IsNullOrEmpty(SentBy))
     {
         SentBy = SentBy.Substring(SentBy.IndexOf(':') + 1);
     }
     Directory = parameters["DIR"];
 }
Пример #2
0
        public void Deserialize(string value, System.Collections.Specialized.NameValueCollection parameters)
        {
            if (value == null)
            {
                return;
            }

            Email  = value.Substring(value.IndexOf(':') + 1);
            Name   = parameters["CN"];
            SentBy = parameters["SENT-BY"];
            if (!string.IsNullOrEmpty(SentBy))
            {
                SentBy = SentBy.Substring(SentBy.IndexOf(':') + 1);
            }
            Directory = parameters["DIR"];
        }