public bool CheckValueEquals(MutableObject mutable, string keyName, object comparisonValue) { object foundValue; if (!mutable.TryGetValue(keyName, out foundValue)) { return(false); } return(foundValue.Equals(comparisonValue)); }
public bool CheckFirstCharacter(MutableObject mutable, string keyName, string sequence) { object foundValue; if (!mutable.TryGetValue(keyName, out foundValue)) { return(false); } var foundString = foundValue as string; if (string.IsNullOrEmpty(foundString)) { return(false); } return(foundString.StartsWith(sequence)); }