//Method Usage example as give below //getDictionaryValue(Login_Objects.LOGIN_APRISO_USERNAME, DOMAttributes.css_class.ToString()); public String getDictionaryValue(Dictionary <String, String> dictionary, String Key) { try { String value = null; if (dictionary != null) { if (dictionary.ContainsKey(Key)) { value = dictionary[Key]; return(value); } else { return(value); } } else { return(value); } } catch (Exception e) { SAFEBBALog.LogStackTrace(e); return(null); } }