नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'type' : invalid source type for safe_cast
Remarks
The source type for safe_cast was not valid. For example, all types in a safe_cast operation must be CLR types.
Example
The following example generates C2452:
// C2452.cpp
// compile with: /clr
struct A {};
struct B : public A {};
ref struct C {};
ref struct D : public C{};
int main() {
A a;
safe_cast<B*>(&a); // C2452
// OK
C ^ c = gcnew C;
safe_cast<D^>(c);
}