I have a class with a different variable like this:

```
namespace Model
{
    public class Example 
    {
       private double _var1;
       private double _var2;
       private double _var3;
       private double _var4;
       private double _var5;

       public double Var1
       {
          get { return _var1; }
          set { _var1 = value; }
       }

       public double Var2
       {
          get { return _var2; }
          set { _var2 = value; }
       }

       public double Var3
       {
          get { return _var3; }
          set { _var3 = value; }
       }

       public double Var4
       {
          get { return _var4; }
          set { _var4 = value; }
       }

       public double Var5
       {
          get { return _var5; }
          set { _var5 = value; }
       }

    }
 }

```

A method will using this class to be a model and assign a value to every variable in it.
How to get all the value in different variable inside this class? Thank you.

EDIT
I'm using Hassan code and the code look like this:

```
    foreach (PropertyInfo var in  typeof(Example).GetProperties())
    {
        if (var.Name.Contains("Var")) 
        {
             _dataTable.Rows.Add(_dateDailyBalance, var.GetValue(_justANormalModelOfExample, null));
        }
    }

```

but it returns all zero. the expected returns is some value. Why?