what I’d like to do is change the 1 in carType1Petrol to 2, 3, ect … by using myInt.ToString() … can this be done as it’s a variable ? And when I try it says " is not a member of ‘GlobalVars’ "
Of course you should be aware that reflection doesn’t come free of cost. There could be a performance penalty compared to direct property/field access.