Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'type' a nested type cannot be forwarded
Remarks
Type forwarding does not work on nested types.
For more information, see Type Forwarding (C++/CLI).
Example
The following example creates a component.
// C3464.cpp
// compile with: /LD /clr
public ref class R {
public:
ref class N {};
};
The following example generates C3464.
// C3464_b.cpp
// compile with: /clr /c
#using "C3464.dll"
[assembly:TypeForwardedTo(R::N::typeid)]; // C3464
[assembly:TypeForwardedTo(R::typeid)]; // OK