다음을 통해 공유


DiffLineComparer Class

Helper class to compare DiffLines.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.VersionControl.Common.DiffLineComparer

Namespace:  Microsoft.TeamFoundation.VersionControl.Common
Assembly:  Microsoft.TeamFoundation.VersionControl.Common (in Microsoft.TeamFoundation.VersionControl.Common.dll)

Syntax

'Declaration
Public Class DiffLineComparer _
    Implements IEqualityComparer(Of DiffLine)
public class DiffLineComparer : IEqualityComparer<DiffLine>
public ref class DiffLineComparer : IEqualityComparer<DiffLine^>
type DiffLineComparer =  
    class 
        interface IEqualityComparer<DiffLine>
    end
public class DiffLineComparer implements IEqualityComparer<DiffLine>

The DiffLineComparer type exposes the following members.

Constructors

  Name Description
Public method DiffLineComparer

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Equals(Object, Object) Returns true if the given elements are equal.
Public method Equals(DiffLine, DiffLine) Returns true if the given elements are equal.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode() Serves as the default hash function. (Inherited from Object.)
Public method GetHashCode(Object) Provide the hash code for the given DiffElement.
Public method GetHashCode(DiffLine) Provide the hash code for the given DiffElement.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.VersionControl.Common Namespace