Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / EnumValAlphaComparer.cs / 1305376 / EnumValAlphaComparer.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms {
using System;
using System.Collections;
using System.Globalization;
internal class EnumValAlphaComparer : IComparer {
private CompareInfo m_compareInfo;
internal static readonly EnumValAlphaComparer Default = new EnumValAlphaComparer();
internal EnumValAlphaComparer() {
m_compareInfo = CultureInfo.InvariantCulture.CompareInfo;
}
public int Compare(Object a, Object b) {
return m_compareInfo.Compare(a.ToString(), b.ToString());
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ItemCollectionEditor.cs
- TreeNodeBindingCollection.cs
- DuplicateDetector.cs
- ConfigUtil.cs
- XamlSerializer.cs
- HtmlTableRowCollection.cs
- NavigationWindowAutomationPeer.cs
- CharStorage.cs
- DataGridViewRowStateChangedEventArgs.cs
- CombinedGeometry.cs
- GridLength.cs
- ByValueEqualityComparer.cs
- GridViewCellAutomationPeer.cs
- WindowsMenu.cs
- PrePostDescendentsWalker.cs
- FirstMatchCodeGroup.cs
- TabItemWrapperAutomationPeer.cs
- SqlExpressionNullability.cs
- WindowAutomationPeer.cs
- MenuItemStyleCollection.cs
- OdbcTransaction.cs
- MultiPropertyDescriptorGridEntry.cs
- SimpleHandlerBuildProvider.cs
- StoreItemCollection.cs
- InternalBufferOverflowException.cs
- WebException.cs
- MissingFieldException.cs
- GestureRecognitionResult.cs
- SqlBulkCopyColumnMapping.cs
- NamespaceMapping.cs
- BaseConfigurationRecord.cs
- SemanticAnalyzer.cs
- OleDbCommandBuilder.cs
- TextEditorTyping.cs
- TransformationRules.cs
- Substitution.cs
- EntityException.cs
- PlainXmlDeserializer.cs
- EntityContainer.cs
- Visual.cs
- ComplexTypeEmitter.cs
- ValidatingReaderNodeData.cs
- TextDecorationUnitValidation.cs
- PublisherIdentityPermission.cs
- ContainerUtilities.cs
- DateTimeConverter2.cs
- XPathNode.cs
- MarkedHighlightComponent.cs
- IndentedWriter.cs
- ComponentEditorPage.cs
- InvokeProviderWrapper.cs
- ImageCollectionCodeDomSerializer.cs
- ThousandthOfEmRealPoints.cs
- ProxyGenerationError.cs
- Matrix3DValueSerializer.cs
- Operator.cs
- CrossAppDomainChannel.cs
- DataGridViewColumnHeaderCell.cs
- ResourceDisplayNameAttribute.cs
- RoleService.cs
- Context.cs
- EditorPart.cs
- GroupBoxAutomationPeer.cs
- HotSpotCollectionEditor.cs
- SortDescription.cs
- While.cs
- AccessibilityApplicationManager.cs
- ImageIndexConverter.cs
- MemoryFailPoint.cs
- DeferredSelectedIndexReference.cs
- Menu.cs
- FormattedText.cs
- EmbossBitmapEffect.cs
- Panel.cs
- ReferencedCollectionType.cs
- EntityClientCacheEntry.cs
- AudioException.cs
- SiteMapNodeItemEventArgs.cs
- IncomingWebRequestContext.cs
- FixedSOMPageConstructor.cs
- ServiceProviders.cs
- MessageSecurityException.cs
- BufferBuilder.cs
- EntityDataSourceDesignerHelper.cs
- DtrList.cs
- HandoffBehavior.cs
- UnionCodeGroup.cs
- DefaultEventAttribute.cs
- HtmlInputText.cs
- HwndSource.cs
- IImplicitResourceProvider.cs
- ResXResourceReader.cs
- MinimizableAttributeTypeConverter.cs
- EncodingInfo.cs
- WebServiceAttribute.cs
- X509Certificate.cs
- ToolboxComponentsCreatingEventArgs.cs
- SByteStorage.cs
- EmptyEnumerable.cs
- TaiwanCalendar.cs