Hello
currently we are using 100.05 and we want upgrade to 100.15
but our problem that some of the projects have to stay in 100.05
therefore we have to support both version in the same project(we dont to create a different branch for each version)
we found out that for our needed everything work in both versions without changing anything
except for labels, and to be more specific the where clause
I found out this guide and it works just fine
but the one problem i found is there's difference in how to set the expression
private string expression = "expression"
var labelInfo = new LabelClassInfo(....); //acording to the guide
if(GetVersion() == "100.15.00")
labelInfo.ArcadeExpression = $"$feature.{expression}";
else if if(GetVersion() == "100.5.00")
labelInfo.TextExpression = $"[{expression}]";
this seems to work fine for both versions
my question is if there's a cleaner way to do it?
EDIT: this seems to also work just fine for both versions
labelInfo.ArcadeExpression = $"$feature.{expression}";
labelInfo.TextExpression = $"[{expression}]";