Esempio n. 1
0
        private static void ImplicitInterfaceAccess()
        {
            var instance    = new ImplicitImplementation();
            var asInterface = (ISimpleInterface)instance;

            asInterface.Method(); // outputs: Implicit implementation
        }
Esempio n. 2
0
        private static void ImplicitClassAccess()
        {
            var instance = new ImplicitImplementation();

            instance.Method(); // outputs: Implicit implementation
        }