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); }
public static AdAccount ToAdAccount(AdAccount left, AdAccount right) { throw new NotImplementedException(); }