MixinsAsArray() public method

public MixinsAsArray ( ) : object[]
return object[]
Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
		protected virtual object CreateCustomClassProxyInstance(Type type, IInterceptor interceptor, 
			GeneratorContext context, params object[] argumentsForConstructor)
		{
			if (context.HasMixins)
			{
				ArrayList args = new ArrayList();
				args.Add(interceptor);
				args.Add(context.MixinsAsArray());
				args.AddRange(argumentsForConstructor);

				return Activator.CreateInstance( type, args.ToArray() );
			}
			return CreateClassProxyInstance( type, interceptor, argumentsForConstructor );
		}
Ejemplo n.º 3
0
		protected virtual object CreateCustomProxyInstance(Type type, IInterceptor interceptor, 
			object target, GeneratorContext context)
		{
			if (context.HasMixins)
			{
				return Activator.CreateInstance( type, new object[] { interceptor, target, context.MixinsAsArray() } );
			}
			return CreateProxyInstance( type, interceptor, target );
		}
Ejemplo n.º 4
0
 protected virtual object CreateCustomProxyInstance(Type type, IInterceptor interceptor,
                                                    object target, GeneratorContext context)
 {
     if (context.HasMixins)
     {
         return(Activator.CreateInstance(type, new object[] { interceptor, target, context.MixinsAsArray() }));
     }
     return(CreateProxyInstance(type, interceptor, target));
 }