Exemple #1
0
 private static int Static5(Iface2 i)
 {
     return
         (Static0((BaseClass)i) +
          Static0(i as BaseClass)
         );
 }
Exemple #2
0
 private static int Static2(Iface2 i)
 {
     return
         (Static0((CoClass)i) +
          Static0(i as CoClass)
         );
 }
Exemple #3
0
 private static int Static2(Iface2 i)
 {
     return
         Static0((CoClass)i) +
         Static0(i as CoClass)
         ;
 }
Exemple #4
0
        public void MixinInOverlappingNames()
        {
            Engine c = new Engine("MixinInOverlappingNames");

            c.Configuration.Aspects.Add(
                new SignatureAspect("MixinInOverlappingNames", typeof(Foo), new Type[] { typeof(Iface1Mixin), typeof(Iface2Mixin) },
                                    new IPointcut[0]));

            Foo proxy = (Foo)c.CreateProxy(typeof(Foo));

            Iface1 m1 = (Iface1)proxy;
            Iface2 m2 = (Iface2)proxy;


            Assert.IsTrue(m1.SomeMethod() == 1, "mixin1 did not return the correct value");
            Assert.IsTrue(m2.SomeMethod() == 2, "mixin2 did not return the correct value");
        }
Exemple #5
0
 private static int Static5(Iface2 i)
 {
     return
         Static0((BaseClass)i) +
         Static0(i as BaseClass)
         ;
 }