示例#1
0
        public static Member_securityInfo Parse(string stringify)
        {
            string[] ret = stringify.Split(new char[] { '|' }, 2, StringSplitOptions.None);
            if (ret.Length != 2)
            {
                throw new Exception("格式不正确,Member_securityInfo:" + stringify);
            }
            Member_securityInfo item = new Member_securityInfo();

            if (string.Compare("null", ret[0]) != 0)
            {
                item.Member_id = uint.Parse(ret[0]);
            }
            if (string.Compare("null", ret[1]) != 0)
            {
                item.Password = ret[1].Replace(StringifySplit, "|");
            }
            return(item);
        }
示例#2
0
 public static string ToJson(this Member_securityInfo item)
 {
     return(string.Concat(item));
 }
示例#3
0
 public Member_securityInfo AddSecurity(Member_securityInfo item)
 {
     item.Member_id = this.Id;
     return(item.Save());
 }