partial void Run()
 {
   var st = new TestProtectedCallSiteRequires();
   if (behave)
   {
     st.CallBarVirtually(0);
     var inner = new TestProtectedCallSiteRequires.DerivedInner();
     inner.CallBarVirtually();
   }
   else
   {
     st.CallBarVirtually(-1);
   }
 }
        partial void Run()
        {
            var st = new TestProtectedCallSiteRequires();

            if (behave)
            {
                st.CallBarVirtually(0);
                var inner = new TestProtectedCallSiteRequires.DerivedInner();
                inner.CallBarVirtually();
            }
            else
            {
                st.CallBarVirtually(-1);
            }
        }
Ejemplo n.º 3
0
        partial void Run()
        {
            var st = new TestProtectedCallSiteRequires <int>();

            if (behave)
            {
                st.CallBarVirtually(1.5, 0);
                var inner = new TestProtectedCallSiteRequires <object> .DerivedInner <IDictionary <string, string> >();

                inner.CallBarVirtually <float>((float)1.5, "Hello", new Dictionary <string, string>());
            }
            else
            {
                st.CallBarVirtually((string)null, 0);
            }
        }