예제 #1
0
 public static void DeMagicify(MagicNumber magNum)
 {
     magNum.IsMagic = false;
 }
예제 #2
0
 public static void Decrement(MagicNumber magNum)
 {
     --magNum.Number;
 }
예제 #3
0
 public static void Magicify(MagicNumber magNum)
 {
     magNum.IsMagic = true;
 }
예제 #4
0
 // methods for MagicNumber
 public static void Increment(MagicNumber magNum)
 {
     ++magNum.Number;
 }