I found a nice way to get all fields of a class object dynamically.
My example is a simple class holding only parameters:
Note that I used auto-properties (shorthand for declaration and a get/set method).
public class MySimpleClass
{
public string StringVal1 { get; set; }
public string StringVal2 { get; set; }
public