Compiler Error C3753

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see Compiler Error C3753 on docs.microsoft.com. a generic property is not allowed

Generic parameter lists can only appear on managed classes, structs, or functions.

For more information, see Generics and property.

The following sample generates C3753.

// C3753.cpp  
// compile with: /clr /c  
ref struct A {  
   generic <typename T>  
   property int i;   // C3753 error  
};  

Show: