Store variables in list/array and loop through later c#
===

Is there a way to store variables in a list or array then then loop through them later. 

For example: I have three variables in a class c named x,y and Z.

can I do something like:

 public List<double> Max_One = new List<double> {c.x,c.y,c.z}

--------------------------
and them later in the code


              foreach (string var in Max_One)
              {                   
                  if ((var < 0) | (var > 1 ))
                  {
                    // some code here
                  }
              }
 
   
Thanks.
