I have the following:
public static Dictionary<int,int> IdToDbIdMap
{
get => (Dictionary<int, int>Cx.FixedData[nameof(Cx0.IdToDbIdMap)];
set => Cx.SetFixed(nameof(Cx0.IdToDbIdMap), value);
}
The issue I have is that if the key doesn't exist in the dictionary, then it crashes with 'keyNotFound'
exception. How can I change the above to return 0 if not found.