Castle.DynamicProxy.Generators.Emitters.ClassEmitter.InitializeGenericArgumentsFromBases C# (CSharp) Method

InitializeGenericArgumentsFromBases() protected method

protected InitializeGenericArgumentsFromBases ( Type &baseType, Type &interfaces ) : void
baseType System.Type
interfaces System.Type
return void
		protected virtual void InitializeGenericArgumentsFromBases(ref Type baseType, ref Type[] interfaces)
		{
			if (baseType.IsGenericTypeDefinition)
			{
				throw new NotSupportedException("ClassEmitter does not support open generic base types. Type: " + baseType.FullName);
			}
			foreach(Type inter in interfaces)
			{
				if (inter.IsGenericTypeDefinition)
				{
					throw new NotSupportedException("ClassEmitter does not support open generic interfaces. Type: " + inter.FullName);
				}
			}
		}
	}