Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Common / Utils / TrailingSpaceComparer.cs / 1 / TrailingSpaceComparer.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
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
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OdbcRowUpdatingEvent.cs
- Function.cs
- InlineCollection.cs
- XhtmlBasicLinkAdapter.cs
- MD5CryptoServiceProvider.cs
- CapiSymmetricAlgorithm.cs
- ControlCachePolicy.cs
- SmtpException.cs
- ResourcePool.cs
- EndGetFileNameFromUserRequest.cs
- Int64KeyFrameCollection.cs
- SymDocumentType.cs
- SafeNativeMethods.cs
- TypeBrowserDialog.cs
- XPathNode.cs
- SiteOfOriginContainer.cs
- ToolStripPanelRenderEventArgs.cs
- FixedTextView.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- GlyphCache.cs
- SafeEventLogWriteHandle.cs
- BasicViewGenerator.cs
- CompilerWrapper.cs
- SystemColors.cs
- AssociativeAggregationOperator.cs
- ConfigurationStrings.cs
- Point3DAnimationBase.cs
- PenThreadPool.cs
- StringUtil.cs
- ObjectNotFoundException.cs
- WindowProviderWrapper.cs
- AmbientEnvironment.cs
- WorkflowMarkupSerializationManager.cs
- basecomparevalidator.cs
- SafeNativeMethods.cs
- XmlNamespaceMappingCollection.cs
- EndOfStreamException.cs
- ResourceProviderFactory.cs
- View.cs
- IssuanceLicense.cs
- SimpleWebHandlerParser.cs
- HwndSourceParameters.cs
- TabControlEvent.cs
- CommonProperties.cs
- ListenerElementsCollection.cs
- CacheChildrenQuery.cs
- XmlTextEncoder.cs
- bindurihelper.cs
- PersonalizationProviderCollection.cs
- Utility.cs
- FixedDocument.cs
- wgx_exports.cs
- MultilineStringConverter.cs
- RegisteredHiddenField.cs
- ExpressionEditorAttribute.cs
- ObjectStateManager.cs
- RegisteredExpandoAttribute.cs
- basecomparevalidator.cs
- ReliableMessagingVersion.cs
- ControlValuePropertyAttribute.cs
- ReferenceSchema.cs
- OpCopier.cs
- PersonalizationState.cs
- ServiceDescriptions.cs
- CommonDialog.cs
- ConstructorBuilder.cs
- LabelLiteral.cs
- InstanceOwnerQueryResult.cs
- NullableIntMinMaxAggregationOperator.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ConnectionPoolManager.cs
- TemplateControlParser.cs
- PrimitiveCodeDomSerializer.cs
- ContextConfiguration.cs
- ListDesigner.cs
- FileDataSourceCache.cs
- LinearKeyFrames.cs
- GeneralTransform3DGroup.cs
- XmlTextReaderImplHelpers.cs
- Common.cs
- BinaryWriter.cs
- FixedDSBuilder.cs
- RelationshipDetailsRow.cs
- IdentityModelStringsVersion1.cs
- ForceCopyBuildProvider.cs
- TextSimpleMarkerProperties.cs
- WebPartEditorCancelVerb.cs
- mansign.cs
- Section.cs
- EntityDataSource.cs
- GlyphInfoList.cs
- AsyncStreamReader.cs
- SqlDataSourceConnectionPanel.cs
- ContextMarshalException.cs
- PowerStatus.cs
- ZipIOExtraField.cs
- StrongNameIdentityPermission.cs
- QilPatternVisitor.cs
- EventOpcode.cs
- LayoutEditorPart.cs