SIL.FieldWorks.CacheLight.RealDataCache.GetFromIntCache C# (CSharp) Method

GetFromIntCache() private method

private GetFromIntCache ( int hvo, int tag ) : int
hvo int
tag int
return int
		private int GetFromIntCache(int hvo, int tag)
		{
			CheckBasics(hvo);

			var key = new HvoFlidKey(hvo, tag);
			var removeFromCache = false;
			if (!m_intCache.ContainsKey(key))
				removeFromCache = CheckForVirtual(hvo, tag);
			var val = m_intCache[key];
			if (removeFromCache)
				m_intCache.Remove(key);
			return val;
		}