RequiresGenericParametersAttribute

Overview

Apply this attribute to an aspect to tell the compiler that any class this aspect is placed on requires a minimum or maximum number of generic parameters.

Location

Properties


Max

The maximum number of generic parameters the target class must have

 

property Max: Int32 read;

 

Int32 Max { get; }

 

var Max: Int32 { get{} }

 

Int32 Max { __get; }

 

ReadOnly Property Max() As Int32

Min

The minimum number of generic parameters the target class must have

 

property Min: Int32 read;

 

Int32 Min { get; }

 

var Min: Int32 { get{} }

 

Int32 Min { __get; }

 

ReadOnly Property Min() As Int32

Instance Methods


constructor (Int32)

Constructor. Requires exactly this number of generics

 

constructor(aCount: Int32)

 

RequiresGenericParametersAttribute(Int32 aCount)

 

init(_ aCount: Int32)

 

RequiresGenericParametersAttribute(Int32 aCount)

 

Sub New(aCount As Int32)

Parameters:

  • aCount: Number of required generic parameters

constructor (Int32, Int32)

Constructor

 

constructor(aMin: Int32; aMax: Int32)

 

RequiresGenericParametersAttribute(Int32 aMin, Int32 aMax)

 

init(_ aMin: Int32, _ aMax: Int32)

 

RequiresGenericParametersAttribute(Int32 aMin, Int32 aMax)

 

Sub New(aMin As Int32, aMax As Int32)

Parameters:

  • aMin: Minimum required generic parameters
  • aMax: Maximum required generic parameters