Ejemplo n.º 1
0
      public static void InheritanceTest09()
      {
          ClassInheritanceTest a = new TestCls();
          ClassInheritanceTest b = new TestCls2();

          if (a is TestCls2)
          {
              throw new Exception("Error");
          }
      }