//---------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner Microsoft
// @backupOwner Microsoft
//---------------------------------------------------------------------
using System.Collections.Generic;
namespace System.Data.Common.Utils
{
///
/// Comparer that treats two strings as equivalent if they differ only by trailing
/// spaces, e.g. 'A' eq 'A '. Useful when determining if a set of values is unique
/// even given the possibility of padding (consider SQL Server char and nchar columns)
/// or to lookup values when the set of values is known to honor this uniqueness constraint.
///
internal class TrailingSpaceComparer : IEqualityComparer