Code:
/ DotNET / DotNET / 8.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
- XmlSchemaDatatype.cs
- SwitchElementsCollection.cs
- InputBuffer.cs
- Typography.cs
- ComponentSerializationService.cs
- DataBinding.cs
- WinEventQueueItem.cs
- ResXResourceReader.cs
- WorkflowViewService.cs
- ADMembershipProvider.cs
- LoginCancelEventArgs.cs
- DrawToolTipEventArgs.cs
- ResourceExpression.cs
- ColorConverter.cs
- MutexSecurity.cs
- DescendentsWalkerBase.cs
- DynamicRenderer.cs
- Thread.cs
- SingleAnimation.cs
- Privilege.cs
- ArgumentsParser.cs
- Typography.cs
- PtsHelper.cs
- WsatServiceCertificate.cs
- IndexedEnumerable.cs
- CubicEase.cs
- ContainerUtilities.cs
- HashHelper.cs
- ReverseInheritProperty.cs
- BeginEvent.cs
- CustomTypeDescriptor.cs
- Command.cs
- SchemaDeclBase.cs
- coordinator.cs
- GridView.cs
- TextViewSelectionProcessor.cs
- DetailsViewPageEventArgs.cs
- ManipulationDevice.cs
- X509ThumbprintKeyIdentifierClause.cs
- XmlSchemaAnnotation.cs
- OdbcUtils.cs
- Stylesheet.cs
- TimeEnumHelper.cs
- MultipartIdentifier.cs
- FactoryRecord.cs
- SoapCodeExporter.cs
- SqlConnectionStringBuilder.cs
- ContractBase.cs
- ButtonChrome.cs
- ResourceExpressionEditorSheet.cs
- HtmlTableCell.cs
- SaveWorkflowAsyncResult.cs
- Misc.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- PaginationProgressEventArgs.cs
- MeshGeometry3D.cs
- HandlerFactoryCache.cs
- DeflateEmulationStream.cs
- UriWriter.cs
- CellIdBoolean.cs
- TextServicesCompartmentContext.cs
- DocumentApplicationJournalEntry.cs
- Rfc2898DeriveBytes.cs
- TextRunCacheImp.cs
- Rect3D.cs
- TextEmbeddedObject.cs
- DataControlFieldCollection.cs
- TextParaLineResult.cs
- ArraySortHelper.cs
- InitiatorSessionSymmetricTransportSecurityProtocol.cs
- GlobalEventManager.cs
- TextRunTypographyProperties.cs
- ComboBoxRenderer.cs
- X509CertificateStore.cs
- TextEndOfParagraph.cs
- X509Certificate2Collection.cs
- MessagePropertyDescription.cs
- ActionFrame.cs
- CollectionBuilder.cs
- Fonts.cs
- WindowsListBox.cs
- BinaryObjectWriter.cs
- PeerNameRegistration.cs
- GPRECT.cs
- DataGridToolTip.cs
- XmlObjectSerializerReadContextComplexJson.cs
- RuntimeConfigurationRecord.cs
- CurrentTimeZone.cs
- HtmlLink.cs
- SignHashRequest.cs
- Lock.cs
- ThreadStaticAttribute.cs
- StrokeNodeOperations2.cs
- SortDescription.cs
- XmlWrappingWriter.cs
- CodeObject.cs
- CounterSampleCalculator.cs
- ConnectionProviderAttribute.cs
- XmlStreamNodeWriter.cs
- TCPClient.cs