Add offset to IntPtr

In .net 4 static Add() and Subtract() methods have been added.

IntPtr ptr = IntPtr.Add(oldPtr, 2);

http://msdn.microsoft.com/en-us/library/system.intptr.add.aspx

Leave a Comment