Unsafe Code & Pointers

Pointer Declaration

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/64266519-b4bc-40c8-ac52-def83d8571c3/Untitled

// Compile error for both of these declarations.
string* pMessage;
ServiceStatus* pStatus;

// ServiceStatus is defined as shown in the code below. 
// The problem is that ServiceStatus includes a string field:
struct ServiceStatus
{
	int State;
	// Description is a reference type.
	string Description;
}

Language Contrast: C/C++ Pointer Declaration

Assigning a Pointer