Boo.Lang.Compiler.TypeSystem.GenericsServices.CheckGenericConstruction C# (CSharp) Method

CheckGenericConstruction() public method

Checks whether a given set of arguments can be used to construct a generic type or method from a specified definition.
public CheckGenericConstruction ( Node node, IEntity definition, IType argumentTypes, CompilerErrorCollection errors ) : bool
node Node
definition IEntity
argumentTypes IType
errors CompilerErrorCollection
return bool
        public bool CheckGenericConstruction(Node node, IEntity definition, IType[] argumentTypes, CompilerErrorCollection errors)
        {
            GenericConstructionChecker checker = new GenericConstructionChecker(
                TypeSystemServices, node, argumentTypes, Errors);

            return !(
                checker.NotGenericDefinition(definition) ||
                checker.IncorrectGenerity(definition) ||
                checker.ViolatesParameterConstraints(definition));
        }