当前位置: 首页>>代码示例>>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;未经允许,请勿转载。