예제 #1
0
        public static AdAccount For(string accountString)
        {
            var account = new AdAccount();

            try
            {
                var index = accountString.IndexOf("\\", StringComparison.Ordinal);
                account.Domain = accountString.Substring(0, index);
                account.Name   = accountString.Substring(index + 1);
            }
            catch (Exception ex)
            {
                throw new AdAccountInvalidException(accountString, ex);
            }

            return(account);
        }
예제 #2
0
 public static AdAccount ToAdAccount(AdAccount left, AdAccount right)
 {
     throw new NotImplementedException();
 }