can't I use TryGetValue and assign the value to a property?
c#, dictionary
Solution
No, from the documentation:
"Properties are not variables and therefore cannot be passed as out parameters."
http://msdn.microsoft.com/en-us/library/t3c3bfhx.aspx
Problem
I'm trying to do myDic.TryGetValue("username", out user.Username); but its not working. is this not possible?