AspectSharp.Core.Proxy.DefaultProxyFactory.CreateClassProxyInstance C# (CSharp) Метод

CreateClassProxyInstance() приватный Метод

private CreateClassProxyInstance ( Type proxyType, object mixins, IInvocationDispatcher dispatcher ) : object
proxyType System.Type
mixins object
dispatcher IInvocationDispatcher
Результат object
		private object CreateClassProxyInstance(Type proxyType, object[] mixins, IInvocationDispatcher dispatcher, params object[] constructorArgs)
		{
			object proxy;

			if (mixins.Length != 0)
			{
				proxy = Activator.CreateInstance(proxyType, Merge(new object[] {dispatcher, mixins}, constructorArgs));
			}
			else
			{
				proxy = Activator.CreateInstance(proxyType, Merge(new object[] {dispatcher}, constructorArgs));
			}

			return proxy;
		}