예제 #1
0
파일: Quid.cs 프로젝트: youngce/Akkatecture
        public static bool TryParse(string value, out Quid quid)
        {
            quid = null;

            if (value == null)
            {
                return(false);
            }

            if (value.Length != 22)
            {
                return(false);
            }

            if (!IsBase64(PrepareQuidValueToBase64(value)))
            {
                return(false);
            }

            try
            {
                quid = new Quid(value);
                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
예제 #2
0
파일: Quid.cs 프로젝트: youngce/Akkatecture
 public Quid(Quid quid)
     : this(quid.Guid)
 {
 }