In addition to declaring a scope of unsafe code within a method, you are able to build struc-
tures, classes, type members, and parameters that are “unsafe.” Here are a few examples to gnaw on
(no need to define these types in your current project):
// This entire structure is "unsafe" and can
// be used only in an unsafe context.
public unsafe struct Node
{
public int Value;
public Node* Left;
public Node* Right;
}
// This struct is safe, but the Node2* members
Do'stlaringiz bilan baham: