private void DeleteLink(ILink link)
        {
            int pos = LinksInCollection.BinarySearch(link, CurrLinkComparer);

            if (pos >= 0)
            {
                LinksInCollection.RemoveAt(pos);

                if (SourceArtifactUris.Contains(link.SourceArtifact.Uri))
                {
                    m_sourceArtifactUris.Remove(link.SourceArtifact.Uri);
                }

                if (TargetArtifactUris.Contains(link.TargetArtifact.Uri))
                {
                    m_targetArtifactUris.Remove(link.TargetArtifact.Uri);
                }
            }
        }
        private bool IsLinkInCollection(ILink link)
        {
            int pos = LinksInCollection.BinarySearch(link, CurrLinkComparer);

            return(pos >= 0);
        }