หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
destructors cannot explicitly override or be explicitly overridden
Remarks
Destructors or finalizers cannot be explicitly overridden. For more information, see Explicit Overrides.
Example
The following example generates C3657.
// C3657.cpp
// compile with: /clr
public ref struct I {
virtual ~I() { }
virtual void a();
};
public ref struct D : I {
virtual ~D() = I::~I {} // C3657
virtual void a() = I::a {} // OK
};