This is an archived thread from the StopByte developer forum —
browse all archived threads.
StopByte is now a payments & ecommerce toolkit — check out our
free calculators.
I am trying to add an unmanaged structure (defined already in C programming language) to my C# Application… And I came across this type called size_t
And I couldn’t find any equivalent of that type within C#, So what should I use to replace size_t?!
Thanks!
1 Like
afree
(afree)
#2
hmm… size_t is a platform dependent type, So in some platforms It’s equivalent to uint while in others it’s equivalent to ulong.
But I believe as commonly known UIntPtr Is the .Net Framework Type that best fits with size_t. But there is no guarantee of that documented anywhere. as far as I know.