Class ConstraintAttribute
Indicates that generic parameter is constrained with a concept.
Inherited Members
Namespace: DotNext.Runtime.CompilerServices
Assembly: DotNext.Reflection.dll
Syntax
[AttributeUsage(AttributeTargets.GenericParameter, AllowMultiple = true, Inherited = true)]
public sealed class ConstraintAttribute : Attribute
Constructors
| Improve this Doc View SourceConstraintAttribute(Type)
Initializes a new attribute and specify concept type.
Declaration
public ConstraintAttribute(Type conceptType)
Parameters
Type | Name | Description |
---|---|---|
Type | conceptType | Concept type. |
Properties
| Improve this Doc View SourceConcept
Gets type of concept.
Declaration
public Type Concept { get; }
Property Value
Type | Description |
---|---|
Type |