Example #1
0
        private object GetFieldValue(int id, FieldMetadata field)
        {
            SodaQueryComparator.FieldValueKey key = new SodaQueryComparator.FieldValueKey(id,
                                                                                          field);
            object cachedValue = _fieldValueCache[key];

            if (null != cachedValue)
            {
                return(cachedValue);
            }
            object fieldValue = ReadFieldValue(id, field);

            _fieldValueCache[key] = fieldValue;
            return(fieldValue);
        }
Example #2
0
 public override bool Equals(object obj)
 {
     SodaQueryComparator.FieldValueKey other = (SodaQueryComparator.FieldValueKey)obj;
     return(_field == other._field && _id == other._id);
 }
		private object GetFieldValue(int id, FieldMetadata field)
		{
			SodaQueryComparator.FieldValueKey key = new SodaQueryComparator.FieldValueKey(id, 
				field);
			object cachedValue = _fieldValueCache[key];
			if (null != cachedValue)
			{
				return cachedValue;
			}
			object fieldValue = ReadFieldValue(id, field);
			_fieldValueCache[key] = fieldValue;
			return fieldValue;
		}