SyntaxFix
Write A Post
Hire A Developer
Questions
You can try this code
Dictionary<string,string> AllFields = new Dictionary<string,string>(); string value = (AllFields.TryGetValue(key, out index) ? AllFields[key] : null);
If the key is not present, it simply returns a null value.