Ejemplo n.º 1
0
 public override void Initialize(IMixinDescriptor mixin)
 {
     if (!(mixin is ComputeMethodIndexMixin))
     {
         throw new InvalidOperationException("The ComputeMethodIndexForSubject must be part of a ComputeMethodIndexMixin.");
     }
 }
Ejemplo n.º 2
0
 public MixinCoderContext(ProxyClassCoder proxyCoder, int index, IMixinDescriptor mixin)
 {
     _proxyCoder = proxyCoder;
     _mixin      = mixin;
     _index      = index;
     _mixinCoder = mixin.CreateCoder();
 }
Ejemplo n.º 3
0
 public override void Initialize(IMixinDescriptor mixin)
 {
     if (!(mixin is IRealSubjectMixin))
     {
         throw new InvalidOperationException("A direct proxy subject must be part of a real subject mixin.");
     }
     base.Initialize(mixin);
 }
Ejemplo n.º 4
0
 public override void Initialize(IMixinDescriptor mixin)
 {
     if (!(mixin is InterceptMixin))
     {
         throw new InvalidOperationException("An intercept subject must be part of a intercept mixin.");
     }
     base.Initialize(mixin);
 }
 public override void Initialize(IMixinDescriptor mixin)
 {
     if (!(mixin is DynamicPropertySourceMixin))
     {
         throw new InvalidOperationException("A safe proxy meta subject must be part of a safe null proxy mixin.");
     }
     base.Initialize(mixin);
 }
Ejemplo n.º 6
0
        public override void Initialize(IMixinDescriptor mixin)
        {
            var rsm = mixin as RealSubjectMixin;

            if (rsm == null)
            {
                throw new InvalidOperationException("A duck proxy subject must be part of a real subject mixin");
            }

            _realSubjectType = rsm.RealSubjectType;
        }
 public override void Initialize(IMixinDescriptor mixin)
 {
     if (!(mixin is DynamicPropertySourceMixin))
         throw new InvalidOperationException("A safe proxy meta subject must be part of a safe null proxy mixin.");
     base.Initialize(mixin);
 }
 public override void Initialize(IMixinDescriptor mixin)
 {
     if (!(mixin is ComputeMethodIndexMixin))
         throw new InvalidOperationException("The ComputeMethodIndexForSubject must be part of a ComputeMethodIndexMixin.");
 }
Ejemplo n.º 9
0
 public virtual void Initialize(IMixinDescriptor mixin)
 {
 }
Ejemplo n.º 10
0
 public virtual void Initialize(IMixinDescriptor mixin)
 {
 }