public void CQS_Compliant() { if (dictionary.ContainsKey("SomeKey")) { var result = dictionary["someKey"]; } }