コード例 #1
0
 // Overloaded constructors
 public GoldState(RealState state)
     : this(state.Balance, state.Account)
 {
 }
コード例 #2
0
 // Constructor
 public RedState(RealState state)
 {
     this.balance = state.Balance;
     this.account = state.Account;
     Initialize();
 }
コード例 #3
0
 // Overloaded constructors
 public SilverState(RealState state)
     : this(state.Balance, state.Account)
 {
 }
コード例 #4
0
 // Constructor
 public Account(string owner)
 {
     // New accounts are 'Silver' by default
     this._owner = owner;
     this._state = new SilverState(0.0, this);
 }
コード例 #5
0
 // Constructor
 public RedState(RealState state)
 {
     this.balance = state.Balance;
     this.account = state.Account;
     Initialize();
 }
コード例 #6
0
 // Constructor
 public Account(string owner)
 {
     // New accounts are 'Silver' by default
     this._owner = owner;
     this._state = new SilverState(0.0, this);
 }
コード例 #7
0
 // Overloaded constructors
 public GoldState(RealState state)
     : this(state.Balance, state.Account)
 {
 }
コード例 #8
0
        // Overloaded constructors

        public SilverState(RealState state) :
            this(state.Balance, state.Account)
        {
        }