|
-
March 18th, 2012, 06:19 AM
#3
Re: Need Help with Parser C#
Ok thanks, that's just what I was looking for!
However I tried to use a Try and Catch method and i can't see why it isnt working
Code:
try
{
outputBx.Text = "" + d[inputBx.Text];
}
catch (Exception ex1)
{
outputBx.Text = "Not found";
}
Any help on this? or how i'd use a TryGetValue. I only ask to use this instead of the contains key method is because i've been told that TryGetValue is a lot more efficient than contains key for use with a dictionary.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|