Equals() 공개 메소드

Tags are equal it their OrderedVersion are equals. No other members are used for equality and comparison.
public Equals ( ReleaseTagVersion other ) : bool
other ReleaseTagVersion Other release tag.
리턴 bool
예제 #1
0
 public void AddCollectedTag( ReleaseTagVersion t )
 {
     Debug.Assert( t != null );
     if( t.Equals( _thisTag ) )
     {
         if( t.DefinitionStrength > _thisTag.DefinitionStrength ) _thisTag = t;
     }
     else
     {
         if( _extraCollectedTags == null ) _extraCollectedTags = new List<ReleaseTagVersion>();
         _extraCollectedTags.Add( t );
     }
 }
예제 #2
0
 public void AddCollectedTag(ReleaseTagVersion t)
 {
     Debug.Assert(t != null);
     if (t.Equals(_thisTag))
     {
         if (t.DefinitionStrength > _thisTag.DefinitionStrength)
         {
             _thisTag = t;
         }
     }
     else
     {
         if (_extraCollectedTags == null)
         {
             _extraCollectedTags = new List <ReleaseTagVersion>();
         }
         _extraCollectedTags.Add(t);
     }
 }