private int?ExtractFileLinkInfoExtId(WorkItem workItem, string uri) { ReadOnlyCollection <ExternalLink> myLinks = ExtractMyLinks(workItem); foreach (ExternalLink link in myLinks) { if (TFStringComparer.ArtiFactUrl.Equals(link.LinkedArtifactUri, uri)) { return(WorkItemExternalLinkType.ReflectFileLinkInfoExtId(link)); } } return(null); }
private int?ExtractFileLinkInfoExtId(WorkItem workItem, string uri) { ReadOnlyCollection <Hyperlink> myLinks = ExtractMyLinks(workItem); foreach (Hyperlink link in myLinks) { if (TFStringComparer.ArtiFactUrl.Equals(TfsHyperlinkHandler.UriFromId(link.Location), uri)) { return(WorkItemExternalLinkType.ReflectFileLinkInfoExtId(link)); } } return(null); }