/// <summary>
/// Checks if a specified entity is not a generic definition.
/// </summary>
public bool NotGenericDefinition(IEntity entity)
{
if (!(GenericsServices.IsGenericType(entity) || GenericsServices.IsGenericMethod(entity)))
{
Errors.Add(CompilerErrorFactory.NotAGenericDefinition(ConstructionNode, entity.FullName));
return(true);
}
return(false);
}