當前位置: 首頁>>代碼示例>>C#>>正文


C# AccountType類代碼示例

本文整理匯總了C#中AccountType的典型用法代碼示例。如果您正苦於以下問題:C# AccountType類的具體用法?C# AccountType怎麽用?C# AccountType使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


AccountType類屬於命名空間,在下文中一共展示了AccountType類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Account

 public Account(int accountNumber, string name, AccountType accountAccountType)
 {
     AccountNumber = accountNumber;
     Name = name;
     Type = accountAccountType;
     _transactions = new List<ITransaction>();
 }
開發者ID:robertreppel,項目名稱:gherk-book,代碼行數:7,代碼來源:Account.cs

示例2: SignedInUser

 public SignedInUser(AccountType accountType, int userId, string userName, bool isAuthenticated)
 {
     AccountType = accountType;
     AccountId = userId;
     UserName = userName;
     IsAuthenticated = isAuthenticated;
 }
開發者ID:ammeep,項目名稱:giftme,代碼行數:7,代碼來源:ICurrentUser.cs

示例3: TinyPicUploader

 public TinyPicUploader(string id, string key, AccountType accountType = AccountType.Anonymous, string shuk = null)
 {
     TinyPicID = id;
     TinyPicKey = key;
     AccountType = accountType;
     Shuk = shuk;
 }
開發者ID:Maximus325,項目名稱:ShareX,代碼行數:7,代碼來源:TinyPicUploader.cs

示例4: CreditAccount

        public void CreditAccount(AccountType accountType, Money amount)
        {
            GuardPortfolioState();

            var account = Get<Account>(new AccountId(accountType));
            account.Credit(amount);
        }
開發者ID:AdrianFreemantle,項目名稱:clientele-training,代碼行數:7,代碼來源:Portfolio.cs

示例5: Account

 public Account( int num, AccountType type )
 {
     Number = num;
     Amount = 0;
     Type = type;
     History = new List<HistoryEntry>();
 }
開發者ID:yuriy0,項目名稱:BankMachine,代碼行數:7,代碼來源:Account.cs

示例6: Account

 public Account(string email, string name, AccountType role)
 {
     id = -1;
     this.Email = email;
     this.Name = name;
     this.Role = role;
 }
開發者ID:Sanko-Kallig,項目名稱:Automatisch-Boodschappen-Beheer,代碼行數:7,代碼來源:Account.cs

示例7: SteamAccount

 public SteamAccount(string username, string password)
 {
     this.name = username;
     this.username = username;
     this.password = password;
     this.type = AccountType.Main;
 }
開發者ID:Trontor,項目名稱:SteamAccountSwitcher,代碼行數:7,代碼來源:SteamAccount.cs

示例8: AdalAccountSession

 internal AdalAccountSession(
     IDictionary<string, string> authenticationResponseValues,
     string clientId = null,
     AccountType accountType = AccountType.None)
     : base(authenticationResponseValues, clientId, accountType)
 {
 }
開發者ID:ChocolateMonkey,項目名稱:onedrive-sdk-csharp,代碼行數:7,代碼來源:AdalAccountSession.cs

示例9: Account

 public Account(AccountType type, Customer accountCustumer, decimal balance, decimal interestRate)
 {
     this.Type = type;
     this.AccountCustomer = accountCustumer;
     this.Balance = balance;
     this.InterestRate = interestRate;
 }
開發者ID:p0150n,項目名稱:TelerikAcademy,代碼行數:7,代碼來源:Account.cs

示例10: AccountAlreadyOpened

 public AccountAlreadyOpened(AccountType type, Int64 number, Decimal balance, AccountStatus status)
 {
     AccountType = type;
     AccountNumber = number;
     Balance = balance;
     Status = status;
 }
開發者ID:SparkSoftware,項目名稱:infrastructure,代碼行數:7,代碼來源:AccountEvents.cs

示例11: Account

 internal Account(AccountTypeEnum accountType, Money initialDeposit)
 {
     this.accountType = accountType;
     ledger = new Ledger(accountType);
     this.accountType.ValidateBalance(initialDeposit);
     ledger.DepositMoney(initialDeposit);
 }
開發者ID:AdrianFreemantle,項目名稱:clientele-training,代碼行數:7,代碼來源:Account.cs

示例12: CanFindAccount

        public static bool CanFindAccount(this Cmdlet command, AccountIdentity account, AccountType accountType)
        {
            if (account == null)
            {
                return false;
            }
            var name = account.Name;
            var error = $"Cannot find an account with identity '{name}'.";

            if (accountType == AccountType.Role && !Role.Exists(name))
            {
                command.WriteError(new ErrorRecord(new ObjectNotFoundException(error), ErrorIds.AccountNotFound.ToString(),
                    ErrorCategory.ObjectNotFound, account));
                return false;
            }

            if (accountType == AccountType.User && !User.Exists(name))
            {
                command.WriteError(new ErrorRecord(new ObjectNotFoundException(error), ErrorIds.AccountNotFound.ToString(),
                    ErrorCategory.ObjectNotFound, account));
                return false;
            }

            return true;
        }
開發者ID:sobek85,項目名稱:Console,代碼行數:25,代碼來源:CmdletExtensions.cs

示例13: CreateAccount

 /// <summary>
 /// Factory method to assemble and return an account based on passed account type.
 /// </summary>
 /// <param name="accountType">Type of the account.</param>
 /// <returns>
 /// new account
 /// </returns>
 /// <exception cref="System.ArgumentException"></exception>
 public Account CreateAccount(AccountType accountType)
 {
     Func<IDateProvider, Account> f;
     if (!accMap.TryGetValue(accountType, out f))
         throw new ArgumentException(string.Format("Cannot instantiate account of type {0}", accountType));
     return f(dateProvider);
 }
開發者ID:ashalabad,項目名稱:abc-bank-c-sharp,代碼行數:15,代碼來源:AccountFactory.cs

示例14: SetAccountType

 public void SetAccountType(AccountType type)
 {
     if ((Application.platform != RuntimePlatform.OSXEditor) && (Application.platform != RuntimePlatform.WindowsEditor))
     {
         _tdgaSetAccountType((int) type);
     }
 }
開發者ID:Lessica,項目名稱:Something-of-SHIPWAR-GAMES,代碼行數:7,代碼來源:TDGAAccount.cs

示例15: Account

 /// <summary>
 /// Initializes a new instance of the <see cref="Account"/> class.
 /// </summary>
 /// <param name="accountType">Type of the account.</param>
 /// <param name="interestCalculator">The interest calculator.</param>
 /// <param name="dateProvider">The date provider.</param>
 public Account(AccountType accountType,IInterestCalculator interestCalculator,IDateProvider dateProvider)
 {
     AccountType = accountType;
     transactionsList = new List<Transaction>();
     this.interestCalculator = interestCalculator;
     this.dateProvider = dateProvider;
 }
開發者ID:ashalabad,項目名稱:abc-bank-c-sharp,代碼行數:13,代碼來源:Account.cs


注:本文中的AccountType類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。