(Option item)
| 716 | |
| 717 | |
| 718 | protected override string GetKeyForItem (Option item) |
| 719 | { |
| 720 | if (item == null) |
| 721 | throw new ArgumentNullException ("option"); |
| 722 | if (item.Names != null && item.Names.Length > 0) |
| 723 | return item.Names [0]; |
| 724 | // This should never happen, as it's invalid for Option to be |
| 725 | // constructed w/o any names. |
| 726 | throw new InvalidOperationException ("Option has no names!"); |
| 727 | } |
| 728 | |
| 729 | [Obsolete ("Use KeyedCollection.this[string]")] |
| 730 | protected Option GetOptionForName (string option) |
nothing calls this directly
no outgoing calls
no test coverage detected