SIL.FieldWorks.IText.InterlinVc.GetGuess C# (CSharp) Method

GetGuess() private method

Get a guess for the given word or analysis.
private GetGuess ( IAnalysis analysis ) : int
analysis IAnalysis
return int
		internal int GetGuess(IAnalysis analysis)
		{
			if (Decorator.get_IsPropInCache(analysis.Hvo, InterlinViewDataCache.AnalysisMostApprovedFlid,
				(int)CellarPropertyType.ReferenceAtomic, 0))
			{
				var hvoResult = Decorator.get_ObjectProp(analysis.Hvo, InterlinViewDataCache.AnalysisMostApprovedFlid);
				if(hvoResult != 0 && Cache.ServiceLocator.IsValidObjectId(hvoResult))
					return hvoResult;  // may have been cleared by setting to zero, or the Decorator could have stale data
			}
			return analysis.Hvo;
		}