Код: Выделить всё
string displayName = Dictionary.FirstOrDefault(x => x.Value.ID == long.Parse(options.ID)).Value.DisplayName;
Подробнее здесь: https://stackoverflow.com/questions/211 ... h-is-found
Код: Выделить всё
string displayName = Dictionary.FirstOrDefault(x => x.Value.ID == long.Parse(options.ID)).Value.DisplayName;