public void CQS_Violation() { String result; if (dictionary.TryGetValue("someKey", out result)) { // key found, `result` is populated } }