Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="_FirstFragment"></param>
 /// <param name="_SecondFragment"></param>
 /// <param name="_Similarity"></param>
 public CRelatedCloneFragments(CCodeFragment _FirstFragment, CCodeFragment _SecondFragment, CSimilarity _Similarity)
 {
     if (_FirstFragment == null || _SecondFragment == null || _Similarity == null)
     {
         throw new ArgumentNullException();
     }
     m_FirstFragment  = _FirstFragment;
     m_SecondFragment = _SecondFragment;
     m_Similarity     = _Similarity;
 }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            CSimilarity p = obj as CSimilarity;

            if ((object)p == null)
            {
                return(false);
            }

            return(m_Similarity.Equals(p.m_Similarity));
        }