Tech Off Post

Single Post Permalink

View Thread: !sizeof
  • User profile image

    In C#, it's my understanding that variables are created as objects. Does anybody know how large those objects are? In C, you have the sizeof operator, and it returns the size of an object in bytes. But in C#, from what I read here, it's sizeof operator "can only be used in the unsafe mode".  Hmmm. Is there an alternate keyword that serves the same purpose?

    Also, how does C# perform when you are manipulating large sets of data? Or is that not recommended. Just an academic interest on my end...nothing serious planned.