andrewWinn
andrewWinn

Reputation: 1786

Look at decompiled source and ran across byte*

What in the world is a byte*?

example code:

byte* numPointer = (byte*)0;
byte* numPointer1 = (byte*)0;
uint* numPointer2 = (uint*)0;

Upvotes: 0

Views: 36

Answers (1)

BradleyDotNET
BradleyDotNET

Reputation: 61369

A byte * (same thing as byte*) is a pointer to a byte variable. You almost never use pointers in C#, which is why you have never seen it before.

More specifically, a pointer is a variable that holds the memory location of another variable.

Regardless, don't worry about it unless you are planning to go into C++ or another native language.

See MSDN for more info.

Upvotes: 3

Related Questions