struct with unsafe code(pointer) : struct unsafe code « struct « C# / CSharp Tutorial






using System;
using System.Globalization;

public struct Node
{
  public int Value;
  public unsafe Node* Left;
  public unsafe Node* Right;
}

public class MainClass{

  static void Main(string[] args)
  {
    Node n = new Node();
    n.Value = 9;
  }
}








6.11.struct unsafe code
6.11.1.struct with unsafe code(pointer)
6.11.2.Access members via ->
6.11.3.Use pointer indirection and . operator