नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'type' : you cannot call the finalizer for this class as it is either inaccessible or it does not exist
Remarks
A finalizer is implicitly private, so it cannot be called from outside its enclosing type.
For more information, see Destructors and finalizers in How to: Define and consume classes and structs (C++/CLI).
Example
The following example generates C3421.
// C3421.cpp
// compile with: /clr
ref class A {};
ref class B {
!B() {}
public:
~B() {}
};
int main() {
A a;
a.!A(); // C3421
B b;
b.!B(); // C3421
}