FieldInfo[] GetAllFieldsForType(Type t) { return t.GetFields(BindingFlags.FlattenHierarchy | BindingFlags.Instance | BindingFlags.Public); }