Exemple #1
0
        public bool CheckValueEquals(MutableObject mutable, string keyName, object comparisonValue)
        {
            object foundValue;

            if (!mutable.TryGetValue(keyName, out foundValue))
            {
                return(false);
            }

            return(foundValue.Equals(comparisonValue));
        }
Exemple #2
0
        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));
        }