הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
'type' : indirections on a generic type parameter are not allowed
Remarks
You cannot use generic parameters with *, ^, or &.
Examples
The following example generates C3229.
// C3229.cpp
// compile with: /clr /c
generic <class T>
ref class C {
T^ t; // C3229
};
// OK
generic <class T>
ref class D {
T u;
};
The following example generates C3229.
// C3229_b.cpp
// compile with: /clr /c
generic <class T> // OK
ref class Utils {
static void sort(T elems[], size_t size); // C3229
static void sort2(T elems, size_t size); // OK
};