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

CheckForVirtual() private method

private CheckForVirtual ( int hvo, int tag ) : bool
hvo int
tag int
return bool
		private bool CheckForVirtual(int hvo, int tag)
		{
			// It may or may not be a virtual property,
			// so be safe and hace client understand to leave the value in the cache.
			var removeFromCache = false;

			var vh = GetVirtualHandlerId(tag);
			if (vh != null)
			{
				// It may be a ComputeEveryTime virtual property,
				// or it may be the first time for a load once virtual handler.
				vh.Load(hvo, tag, 0, this);
				removeFromCache = vh.ComputeEveryTime;
			}

			return removeFromCache;
		}