public string this[string key] { get { _ResourcesService.TrackKey(_context, key); if (!_resources.ContainsKey(key)) { var anotherKey = ChangeFirstCharCase(key); if (_resources.ContainsKey(anotherKey)) { return(_resources[anotherKey]); } throw new KeyNotFoundException($"The given key '{key}' was not present in the dictionary."); } return(_resources[key]); } }