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?!
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.