/// <summary> /// Looks for the specific paragraph in the specification using its Guid for identification /// </summary> /// <param name="guid">The guid of the paragraph to find</param> /// <returns></returns> public Paragraph FindParagraphByGuid(String guid) { Paragraph retVal = null; if (guid != null) { if (!GuidCache.TryGetValue(guid, out retVal)) { GuidParagraphVisitor cacheUpdater = new GuidParagraphVisitor(GuidCache); cacheUpdater.visit(this); } GuidCache.TryGetValue(guid, out retVal); GuidCache[guid] = retVal; } return(retVal); }
/// <summary> /// Looks for the specific paragraph in the specification using its Guid for identification /// </summary> /// <param name="guid">The guid of the paragraph to find</param> /// <returns></returns> public Paragraph FindParagraphByGuid(String guid) { Paragraph retVal = null; if (guid != null) { if (!GuidCache.TryGetValue(guid, out retVal)) { GuidParagraphVisitor cacheUpdater = new GuidParagraphVisitor(GuidCache); cacheUpdater.visit(this); } GuidCache.TryGetValue(guid, out retVal); GuidCache[guid] = retVal; } return retVal; }