title: How to find the size of a class in C#
body: <pre><code>public class A
  {
    int x;
    float y;
  }
  </code></pre>
  
  <p>How to find the size of the class in C#.
  Is there any operator like Sizeof(), which used to be in C++</p>