Skip to content

Static class performance

Ryan Connolly

Asked Jan 24, 2007, 4:33 AM EST1 answer
Share
LinkedInX
Do i get the same performance gains from a static class as I would from a struct since im not using the new keyword? In other words, is a static class created on the stack like a struct? Thanks for any help RyanOC

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0

    I am not 100% sure but if you just have some member variables (or properties in the class), you may be better off using struct. Static class is still a class and creates Class space in memory map table.

    0