Exemplo 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();
 }
Exemplo 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();
        }