Possible Duplicate:
How much memory does a C#/.NET object use?
Like the title says, how can I check how much memory a class instance takes in memory in c# (webforms)
Possible Duplicate:
How much memory does a C#/.NET object use?
Like the title says, how can I check how much memory a class instance takes in memory in c# (webforms)
You can check this one - Find size of object instance in bytes in c#
private System.Diagnostics.PerformanceCounter ramCounter;
ramCounter = new System.Diagnostics.PerformanceCounter("Memory", "Available MBytes");
public string getAvailableRAM()
{
return ramCounter.NextValue() + "Mb";
}
Those be the tools to your disposal :D hopefully that helps.