title: How do I make a class iterable?
body: <p>This is my class </p>
  
  <pre><code>public class csWordSimilarity
  {
      public int irColumn1 = 0;
      public int irColumn2 = 0;
      public int irColumn3 = 0;
      public int irColumn4 = 0;
      public int irColumn5 = 0;
  }
  </code></pre>
  
  <p>I want to make that class iterable to be used like the way below</p>
  
  <pre><code>foreach (int irVal in myVarWordSimilarity)
  {
  
  } 
  </code></pre>
  
  <p><code>myVarWordSimilarity</code> is <code>csWordSimilarity</code> type. So I want to iterate all public <code>int</code> variables. How do I need to modify <code>csWordSimilarity</code> class for making it iterable like the way above.</p>