SIL.FieldWorks.Common.Controls.XMLViewsDataCache.get_IsPropInCache C# (CSharp) Method

get_IsPropInCache() public method

Override to support some fake flids.
public get_IsPropInCache ( int hvo, int tag, int cpt, int ws ) : bool
hvo int
tag int
cpt int
ws int
return bool
		public override bool get_IsPropInCache(int hvo, int tag, int cpt, int ws)
		{
			switch (tag)
			{
				default:
					if (tag == m_tagReversalEntriesBulkText &&
						m_mlStringCache.ContainsKey(new HvoFlidWSKey(hvo, tag, ws)))
					{
							return true;
					}
					if (tag >= ktagAlternateValueMultiBase && tag < ktagAlternateValueMultiBaseLim)
						return m_stringCache.ContainsKey(new HvoFlidKey(hvo, tag));
					return base.get_IsPropInCache(hvo, tag, cpt, ws);
				case ktagTagMe:
					return true; // hvo can always be itself.
				case ktagAlternateValue:
					return m_stringCache.ContainsKey(new HvoFlidKey(hvo,  tag));
				case ktagActiveColumn: // Fall through
				case ktagItemEnabled: // Fall through
					return m_integerCache.ContainsKey(new HvoFlidKey(hvo, tag));
				case ktagItemSelected:
					return true; // we have a default, this is effectively always in the cache.
			}
		}