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.
getcan't return 0. I suppose it could return aDictionary<int, int>that has a key and value of 0, but that's not the same thing.