public ODFOption GetOptionByValue(string val) { foreach (ODFOption opt in _options) { if (opt.Value == val) { return opt; } } return null; }