I
IcedCrow
I am a little bit confused so am proposing this question.
Thanks in advance to anyone who can answer it for me.
I was told many times that one of the things that .NET got
rid of was pointers. So for the past year and a half I
have been running under this assumption.
Today I ran into something called an "IntPtr" which is a
structure that acts as... a pointer!! (This is in VB.NET,
I imagine it is everywhere then)
What's the deal then? I take it you can use pointers
in .NET?
I see a common use for IntPtr is to act as a handle (the
example given in the documentation is for file handles for
System.IO classes) but can these be used like C++ pointers?
Thanks!
~IC
Thanks in advance to anyone who can answer it for me.
I was told many times that one of the things that .NET got
rid of was pointers. So for the past year and a half I
have been running under this assumption.
Today I ran into something called an "IntPtr" which is a
structure that acts as... a pointer!! (This is in VB.NET,
I imagine it is everywhere then)
What's the deal then? I take it you can use pointers
in .NET?
I see a common use for IntPtr is to act as a handle (the
example given in the documentation is for file handles for
System.IO classes) but can these be used like C++ pointers?
Thanks!
~IC