Esempio n. 1
0
 public void Run()
 {
     InterfaseClass iCl = new InterfaseClass();
     IInterface iClIn = (IInterface) iCl;
     iClIn.SayHello();
     iClIn.SayGavGav();
     InterfaceStruct str = new InterfaceStruct();
     IGavGav strI = (IGavGav)str; //boxing!!! danger
     strI.SayGavGav();
 }
Esempio n. 2
0
        public void Run()
        {
            InterfaseClass iCl   = new InterfaseClass();
            IInterface     iClIn = (IInterface)iCl;

            iClIn.SayHello();
            iClIn.SayGavGav();
            InterfaceStruct str  = new InterfaceStruct();
            IGavGav         strI = (IGavGav)str; //boxing!!! danger

            strI.SayGavGav();
        }