IntPtr.Zero : IntPtr : Unsafe C# Examples


C# Examples » Unsafe » IntPtr »

 

IntPtr.Zero









    
using  System;
using  System.Runtime.InteropServices;

public  class  MainClass
{
    [STAThread]
    static  void  Main(string[]  args)
    {
        IntPtr  ptr  =  IntPtr.Zero;

        ptr  =  Marshal.AllocHGlobal(Marshal.SizeOf(typeof(int)));
        Marshal.FreeHGlobal(ptr);
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Unsafe
» IntPtr