public override void Initialize(IMixinDescriptor mixin) { if (!(mixin is ComputeMethodIndexMixin)) { throw new InvalidOperationException("The ComputeMethodIndexForSubject must be part of a ComputeMethodIndexMixin."); } }
public MixinCoderContext(ProxyClassCoder proxyCoder, int index, IMixinDescriptor mixin) { _proxyCoder = proxyCoder; _mixin = mixin; _index = index; _mixinCoder = mixin.CreateCoder(); }
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); }
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); }
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."); }
public virtual void Initialize(IMixinDescriptor mixin) { }