Пример #1
0
        public void CreateAspectInstance(PointCut c)
        {
            c = c.Call(GetFactoryMethod(), arg =>
            {
                if (Factory != null)
                {
                    arg.TypeOf(Host);
                }
            });

            if (Factory != null)
            {
                c.Cast(Host);
            }
        }
        public void CreateAspectInstance(PointCut c)
        {
            c = c.Call(GetFactoryMethod(), arg =>
            {
                if (Factory != null)
                {
                    arg.TypeOf(Host);
                }
            });

            if (Factory != null)
            {
                c.Cast(Host.Module.GetTypeSystem().Object, Host);
            }
        }
Пример #3
0
 public Instruction CreateInstruction(OpCode opCode, PointCut pointCut)
 {
     return(_proc.Create(opCode, pointCut._refInst));
 }