Size Of a Managed Object
-
Does anybody know how to get the size in memory of an instance of a manged object. The more I look for an answer, the stronger my suspicion gets that it's not possible.
-
Does anybody know how to get the size in memory of an instance of a manged object. The more I look for an answer, the stronger my suspicion gets that it's not possible.
Did you try
System.Runtime.InteropServices.Marshal.SizeOf
? Regards Senthil _____________________________ My Blog | My Articles | WinMacro -
Did you try
System.Runtime.InteropServices.Marshal.SizeOf
? Regards Senthil _____________________________ My Blog | My Articles | WinMacroYip, I tried it but It can only be used for unmanaged types.
-
Does anybody know how to get the size in memory of an instance of a manged object. The more I look for an answer, the stronger my suspicion gets that it's not possible.