TicketImporter.TfsProject.findWorkItem C# (CSharp) Method

findWorkItem() private method

private findWorkItem ( string sourceId ) : Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem
sourceId string
return Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem
        private WorkItem findWorkItem(string sourceId)
        {
            var workItem = (from ticket in newlyImported
                            where string.CompareOrdinal(ticket.Key.ID, sourceId) == 0 select ticket.Value).FirstOrDefault();
            if (workItem == null)
            {
                previouslyImported.TryGetValue(sourceId, out workItem);
            }
            return workItem;
        }