Errore del compilatore CS0702

Aggiornamento: novembre 2007

Messaggio di errore

Il vincolo non può essere la classe speciale 'identificatore'.
Constraint cannot be special class 'identifier'

The following types may not be used as constraints: System.Object,System.Array, System.Delegate, System.Enum, or System.ValueType.

Esempio

Il seguente codice di esempio genera l'errore CS0702:

// CS0702.cs
class C<T> where T : System.Array  // CS0702
{
}