Esempio n. 1
0
 private static void InvokeStatePattern()
 {
     CardReader c=new CardReader();
       c.PerformOperation(); //Instance will point to CardInsert
     c.PerformOperation();//Instance will point to CardHold
     c.PerformOperation();//Instance will point to CardDiscard
 }