How to retrieve size of in-memory class or dataset object in C#

Ajit_Kr used Ask the Experts™
I have to retrieve the size of the custom object in C# / ASP.NET without profiler.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Apparently Microsoft say that this isn't possible and give a convincing reason:

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial