Compiler Error C3080
'finalizer_function' : a finalizer cannot have a storage-class-specifier
For more information, see Destructors and finalizers in How to: Define and consume classes and structs (C++/CLI).
Example
The following sample generates C3080.
// C3080.cpp
// compile with: /clr /c
ref struct rs {
protected:
static !rs(){} // C3080
!rs(){} // OK
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for