Compiler Error C2605

 

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

For the latest documentation on Visual Studio 2017, see Compiler Error C2605 on docs.microsoft.com. 'name' : this method is reserved within a managed or WinRT class

Certain names are reserved by the compiler for internal functions. For more information, see Destructors and finalizers.

The following sample generates C2605.

// C2605.cpp  
// compile with: /clr /c  
ref class R {  
protected:  
   void Finalize() {}   // C2605  
};  

Show: