Castle.DynamicProxy.GeneratorContext.MixinsAsArray C# (CSharp) Method

MixinsAsArray() public method

public MixinsAsArray ( ) : object[]
return object[]
        public object[] MixinsAsArray()
        {
            return _mixins.ToArray();
        }

Usage Example

Beispiel #1
0
 protected virtual object CreateCustomClassProxyInstance(Type type, IInterceptor interceptor, GeneratorContext context, params object[] argumentsForConstructor)
 {
     if (context.HasMixins)
     {
         ArrayList list = new ArrayList();
         list.Add(interceptor);
         list.Add(context.MixinsAsArray());
         list.AddRange(argumentsForConstructor);
         return(Activator.CreateInstance(type, list.ToArray()));
     }
     return(this.CreateClassProxyInstance(type, interceptor, argumentsForConstructor));
 }
All Usage Examples Of Castle.DynamicProxy.GeneratorContext::MixinsAsArray