I want to set null into key that defined int?:
My code:
Dictionary<int?, string> dic=> Config.Where(a => a.Field == nameof(SafeFilesPath)).OrderBy(s => s.IndexOrder).ToDictionary(a => a.IndexOrder, b => b.Value);
IndexOreder can be also null.
And it fails. I must this null-key. What can I do???
I select all the parameters from DataBase. And the Keys can be also NULL.