Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. 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
- CommandLineParser.cs
- ConstNode.cs
- ConcurrentStack.cs
- WinFormsSecurity.cs
- QilInvokeEarlyBound.cs
- AttachedPropertyMethodSelector.cs
- ThemeInfoAttribute.cs
- SendContent.cs
- ImmutableDispatchRuntime.cs
- LoginUtil.cs
- RangeValidator.cs
- WizardForm.cs
- EntityCollection.cs
- MenuItemBinding.cs
- CryptoApi.cs
- ServiceProviders.cs
- ThemeInfoAttribute.cs
- PriorityRange.cs
- Expression.cs
- SubtreeProcessor.cs
- RecognizerBase.cs
- DateTimeOffset.cs
- ResourcesChangeInfo.cs
- SelectionRange.cs
- WebResponse.cs
- CryptoStream.cs
- AccessDataSourceView.cs
- EditorServiceContext.cs
- TextElementCollection.cs
- XmlSchemaObjectCollection.cs
- TraceXPathNavigator.cs
- FormsAuthenticationEventArgs.cs
- XmlEntity.cs
- SecureEnvironment.cs
- JsonDataContract.cs
- AppearanceEditorPart.cs
- HtmlLink.cs
- DataListItemEventArgs.cs
- linebase.cs
- _AutoWebProxyScriptWrapper.cs
- TextBoxAutoCompleteSourceConverter.cs
- EventLogPermissionAttribute.cs
- TextRangeBase.cs
- BinaryObjectWriter.cs
- Scheduler.cs
- BaseConfigurationRecord.cs
- SecurityDocument.cs
- LinkedResource.cs
- Boolean.cs
- SectionInput.cs
- FileUtil.cs
- EntityClientCacheKey.cs
- InputMethod.cs
- WorkflowView.cs
- WebPartCatalogCloseVerb.cs
- DescendantQuery.cs
- Rect3D.cs
- HttpModuleActionCollection.cs
- TargetControlTypeCache.cs
- InlineCollection.cs
- errorpatternmatcher.cs
- TdsParserStateObject.cs
- SettingsAttributes.cs
- AutomationProperties.cs
- AppSettingsReader.cs
- SqlTypesSchemaImporter.cs
- DataServiceStreamProviderWrapper.cs
- ObjectListField.cs
- WindowsFormsLinkLabel.cs
- CheckBoxRenderer.cs
- SqlWebEventProvider.cs
- ConsoleTraceListener.cs
- QfeChecker.cs
- WeakReferenceList.cs
- TargetConverter.cs
- GlyphRunDrawing.cs
- ReadContentAsBinaryHelper.cs
- PerfService.cs
- AuthenticationService.cs
- XmlAttributeOverrides.cs
- DirectionalLight.cs
- SharedPersonalizationStateInfo.cs
- QilSortKey.cs
- ServicesExceptionNotHandledEventArgs.cs
- QilSortKey.cs
- TraceEventCache.cs
- SqlCacheDependencyDatabaseCollection.cs
- NullableIntSumAggregationOperator.cs
- SettingsPropertyValue.cs
- DesignerForm.cs
- ExpressionParser.cs
- FixedDSBuilder.cs
- TimeoutConverter.cs
- _SSPISessionCache.cs
- CodePageUtils.cs
- Root.cs
- SemaphoreFullException.cs
- GC.cs
- MimeMapping.cs
- InvalidPipelineStoreException.cs