Question
What size is a .net object?

Answers

Each instance of a reference type has two fields maintained by the runtime - a method table pointer and a sync block. These are 4 bytes each on a 32-bit system, making a total of 8 bytes per object overhead. Obviously the instance data for the type must be added to this to get the overall size of the object. So, for example, instances of the following class are 12 bytes each:
class MyInt
{
...
private int x;
}
However, note that with the current implementation of the CLR there seems to be a minimum object size of 12 bytes, even for classes with no data (e.g. System.Object). Values types have no equivalent overhead.   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q What are the strategies required to attract customers?
  • Q What steps does a tester take in testing stored procedures?
  • Q Which property is used to set the line style for the outline
  • Q India won 1983 Cricket World Cup along with which two famous player from Karnataka?
  • Q To set the next output line to the first line of a block of lines defined with the RESERVE statement the statement
  • Q What is openurl?
  • Q You should rise whenever the judge (A)Enters the courtroom (B)Leaves the courtroom (C)All of the above
  • Q On a prescription what does QOD stand for
  • Q What are sla's, how are they different from agents?
  • Q Design for manufacturability and its applications
  • Q Explain what are the JUnits annotation linked with Selenium