struct with unsafe code(pointer) : Struct unsafe code : Struct C# Examples


C# Examples » Struct » Struct unsafe code »

 

struct with unsafe code(pointer)









    
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;
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Struct
» Struct unsafe code