public bool TryGetCurrentCustomVariableValue(string name, out object value) { value = null; foreach (PropertyValuePair pvp in mCustomVariables) { if (pvp.Property == name) { value = pvp.Value; return true; } } return false; }