Dictionary class lacks the very basic function ?
- From: craigkenisston@xxxxxxxxxxx
- Date: 22 Sep 2006 12:09:21 -0700
I want to use Dictionary class like this:
textboxM.Text = oMyDict.GetValue("textboxM");
textboxN.Text = oMyDict.GetValue("textboxN");
Where my dictionary contains the list of values for my textbox based on
the textbox id.
But it doesn't have it !
TryGetValue !? What's that ? Why I have to provide an out parameter,
isn't more simple just return the value or null if not found !?
.
- Follow-Ups:
- Re: Dictionary class lacks the very basic function ?
- From: Mattias Sjögren
- Re: Dictionary class lacks the very basic function ?
- From: Zach
- Re: Dictionary class lacks the very basic function ?
- Prev by Date: Paradigm for multiple IDisposables
- Next by Date: Re: Paradigm for multiple IDisposables
- Previous by thread: Paradigm for multiple IDisposables
- Next by thread: Re: Dictionary class lacks the very basic function ?
- Index(es):