private void insertSpecificVehicleDetails(VehicleInfo i_VehicleInfo) { Type vType = i_VehicleInfo.Vehicle.GetType(); foreach (FieldInfo info in vType.GetFields(BindingFlags.Instance | BindingFlags.NonPublic)) { object someInfo = null; m_UI.GetInfo(info, ref someInfo); i_VehicleInfo.Vehicle.SetInfo(info, someInfo); } }