title: properties of class with same termination, that i want to read one by one
body: <p>Look i really tried to ask very well but maybe i didnt make me understand i have this class</p>
  
  <pre><code>public class Deepa
  {
      public string Nombre  { get; set; }
      public string capital { get; set; }
      public int x_location { get; set; }
      public int y_location { get; set; }
  
  
      public Deepa conexion1 { get; set; }
      public Deepa conexion2 { get; set; }
      public Deepa conexion3 { get; set; }
      public Deepa conexion4 { get; set; }
      public Deepa conexion5 { get; set; }
      public Deepa conexion6 { get; set; }
      public Deepa conexion7 { get; set; }
  
  }
  </code></pre>
  
  <p>and I have created a </p>
  
  <pre><code>Deepa Guajira_d   = new Deepa();
  </code></pre>
  
  <p>then I have to setup on each deepa ,on Each connection because always is different</p>
  
  <pre><code>// 1. Carga Guajira
  Guajira_d.Nombre = Guajira.Name.ToString();
  Guajira_d.capital = "Riohacha";
  Guajira_d.x_location = Int32.Parse(Guajira.Location.X.ToString());
  Guajira_d.y_location = Int32.Parse(Guajira.Location.Y.ToString());
  
  Guajira_d.conexion1 = Magdalena_d;
  Guajira_d.conexion2 = Cesar_d;
  Guajira_d.conexion3 = null;
  Guajira_d.conexion4 = null;
  Guajira_d.conexion5 = null;
  Guajira_d.conexion6 = null;
  Guajira_d.conexion7 = null;
  </code></pre>
  
  <p>now i want to read each connection of the actual deepa like this</p>
  
  <pre><code>for (int i = 1; i &lt;= 7; i++)
  {
      if (Guajira_d.conexion[i] == null) { }
  }
  </code></pre>
  
  <p>could you introduce me on how to do it, im really novate with c#</p>