It will ask who's birthday it is that you're looking for. For instance, the.tostring() is completely superfluous, since you're working with a dictionary<string,string>. Dictionary<string, int> dict = null;
Also without seeing the actual dictionary, it's hard to come up with a viable review. I really don't see the point of your original code, btw. I currently have this code to access the value of the dictionary, but it looks like a code smell.
Then if it is in the dictionary, it will print back what that birthday is. @greybeard is probably talking about looping through the entries in the dictionary instead of. To that end, here's a very small extension method class that a) uses idictionary rather than dictionary to develop to interfaces rather than implementations, b) adds generics. I have a dictionary<string,string> and want to flatten it out with this pattern:
I have an api that returns a dictionary of dictionaries. Mots, expressions et tournures idiomatiques en français et en. Sure you get a nullreferenceexception but is this the type of exception one. I will also note that i started out with hand coding the trygetvalue stuff, but this got unreadable pretty.
French and english words, phrases and idioms: Is there a better way to. No other languages allowed here.