5 using SiliconStudio.Shaders.Ast;
7 namespace SiliconStudio.Shaders.Ast
31 Constraint = constraint;
40 public string Name {
get; set; }
49 public Func<TypeBase, bool> Constraint {
get; set; }
GenericParameterConstraint(string name, Func< TypeBase, bool > constraint)
Initializes a new instance of the GenericParameterConstraint class.
A Generic parameter for a method that provides a constraint resolver.
GenericParameterConstraint(string name)
Initializes a new instance of the GenericParameterConstraint class.