c# get object by property code example Example: c# get object property value by name return car.GetType().GetProperty(propertyName).GetValue(car, null);