Class1 result1 = new Class1();
FieldInfo[] fields = result1.GetType().GetFields(BindingFlags.Public| BindingFlags.Instance);
foreach (var f in fields)
{
f.SetValue(result1, Convert.ChangeType("1", f.FieldType));
}