Example #1
0
        public static void Main()
        {
            Foo  b = HelperToMarkFooAndRequireBase();
            IBar i = b;

            i.Method();
        }
Example #2
0
        public static void Main()
        {
            Foo  b = null;
            IBar i = b;

            i.Method();
        }
        public static void Main()
        {
            Foo f = HelperToMarkFooAndRequireBase();

            f.Method();
            IBar i = GetAnIBar();

            i.Method();
        }