Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Misc / InvariantComparer.cs / 1 / InvariantComparer.cs
namespace System { using System; using System.Collections; using System.Globalization; [Serializable] internal class InvariantComparer : IComparer { private CompareInfo m_compareInfo; internal static readonly InvariantComparer Default = new InvariantComparer(); internal InvariantComparer() { m_compareInfo = CultureInfo.InvariantCulture.CompareInfo; } public int Compare(Object a, Object b) { String sa = a as String; String sb = b as String; if (sa != null && sb != null) return m_compareInfo.Compare(sa, sb); else return Comparer.Default.Compare(a,b); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathBinder.cs
- EntityModelBuildProvider.cs
- SingleConverter.cs
- WindowsFormsSectionHandler.cs
- SchemaElementDecl.cs
- PackageRelationshipCollection.cs
- PreservationFileWriter.cs
- CapabilitiesSection.cs
- CachedPathData.cs
- DetailsViewInsertedEventArgs.cs
- PluralizationServiceUtil.cs
- CollectionExtensions.cs
- SecureStringHasher.cs
- VoiceChangeEventArgs.cs
- DataGridCell.cs
- RelationshipType.cs
- Events.cs
- XmlSchemaExternal.cs
- StreamInfo.cs
- UnmanagedMemoryStreamWrapper.cs
- SqlServer2KCompatibilityAnnotation.cs
- XamlDesignerSerializationManager.cs
- TableLayoutStyle.cs
- GridViewDeleteEventArgs.cs
- WindowsTokenRoleProvider.cs
- EmissiveMaterial.cs
- Environment.cs
- PipeStream.cs
- CaseInsensitiveOrdinalStringComparer.cs
- SourceChangedEventArgs.cs
- Socket.cs
- IdentitySection.cs
- UpdatePanel.cs
- TemplateBamlRecordReader.cs
- FilteredXmlReader.cs
- TimeSpan.cs
- RTLAwareMessageBox.cs
- GACIdentityPermission.cs
- TableLayoutSettings.cs
- UnsafeNativeMethods.cs
- ObservableCollection.cs
- ExclusiveTcpTransportManager.cs
- SocketElement.cs
- StrokeRenderer.cs
- TraceListeners.cs
- DetailsViewDeleteEventArgs.cs
- UInt16.cs
- NamespaceCollection.cs
- RectAnimationBase.cs
- TextSelection.cs
- DataGridViewEditingControlShowingEventArgs.cs
- HttpPostLocalhostServerProtocol.cs
- CodeCommentStatementCollection.cs
- XmlWrappingWriter.cs
- PropertyIDSet.cs
- EmptyCollection.cs
- DataGridViewTopLeftHeaderCell.cs
- UInt64Storage.cs
- TextModifierScope.cs
- LingerOption.cs
- SQLDecimalStorage.cs
- HelpProvider.cs
- DrawingAttributeSerializer.cs
- Vector.cs
- DbParameterCollection.cs
- DbUpdateCommandTree.cs
- CfgParser.cs
- MetadataItemSerializer.cs
- AppearanceEditorPart.cs
- ColorAnimationBase.cs
- FontStretchConverter.cs
- FrameworkPropertyMetadata.cs
- SchemaTableColumn.cs
- SpeechRecognitionEngine.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- DbInsertCommandTree.cs
- NotificationContext.cs
- AssociationType.cs
- ProfilePropertySettingsCollection.cs
- Matrix.cs
- _ConnectionGroup.cs
- MatrixValueSerializer.cs
- HitTestParameters.cs
- XpsFilter.cs
- Predicate.cs
- FormViewRow.cs
- MulticastNotSupportedException.cs
- ListMarkerSourceInfo.cs
- BufferedWebEventProvider.cs
- TimeZone.cs
- IUnknownConstantAttribute.cs
- DesignTimeVisibleAttribute.cs
- DBCommand.cs
- InternalTransaction.cs
- DataGridViewCellPaintingEventArgs.cs
- COM2ColorConverter.cs
- SatelliteContractVersionAttribute.cs
- Decoder.cs
- MethodRental.cs
- CompilationSection.cs