摘要:
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceAccountManager{classAccount{publicAccount(){ }publicAccount(stringname,stringaccount){this.Name=name;this.AccountNumber=account;}publicstringName{get;set;}publicstringAccountNumber{get;set;}}}usingSystem;usingSyst 阅读全文
摘要:
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Collections; namespaceShowWindow{publicpartialclassMessage:Form{privateArrayListlistMsg=newArrayList();privateintmsgList 阅读全文
摘要:
using System;using System.Collections;using System.Threading;// "Singleton"class LoadBalancer{ // Fields private static LoadBalancer balancer; private ArrayList servers = new ArrayList(); private Random random = new Random(); // Constructors (protected) protected LoadBalancer() { // List o 阅读全文
摘要:
staticvoidMain(string[]args){stringContinue="";//用来保存是否还需要交易标志List<Account>listAccounts=newList<Account>{newAccount(101),newAccount(102),newAccount(99),newAccount(250),newAccount(200)};foreach(AccountiteminlistAccounts){Console.WriteLine(item.Balance);}Console.WriteLine("* 阅读全文