I am trying to use the increment operator so I don't have to retype the Order number each time I move or create new properties. So I would like to do something like:
int order = 1;
[Range(1, int.MaxValue), NinjaScriptProperty]
[Display(ResourceType = typeof(Custom.Resource), Name = "Slow", GroupName = "NinjaScriptStrategyParameters", Order = order++)]
public int Slow { get; set; }
and so on. But I get always errors. Is there a way to achieve that (or something similar so that I don't have to retype the order number each time)? Thanks !
Comment