Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Linq / Parallel / Utils / ReverseComparer.cs / 1305376 / ReverseComparer.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // ReverseComparer.cs // //[....] // // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- using System.Collections.Generic; namespace System.Linq.Parallel { ////// Comparer that wraps another comparer, and flips the result of each comparison to the /// opposite answer. /// ///internal class ReverseComparer : IComparer { private IComparer m_comparer; internal ReverseComparer(IComparer comparer) { m_comparer = comparer; } public int Compare(T x, T y) { return -m_comparer.Compare(x, y); } } } // 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
- WebPartConnectVerb.cs
- DataGridViewControlCollection.cs
- Separator.cs
- Int64Storage.cs
- LocatorBase.cs
- MetaDataInfo.cs
- Stacktrace.cs
- CacheMode.cs
- SqlSelectStatement.cs
- HtmlString.cs
- WaitingCursor.cs
- ColorKeyFrameCollection.cs
- XpsSerializerWriter.cs
- RectKeyFrameCollection.cs
- ProcessInfo.cs
- SqlDataSource.cs
- CacheChildrenQuery.cs
- MimeWriter.cs
- BamlLocalizationDictionary.cs
- AttributeProviderAttribute.cs
- SamlAuthorityBinding.cs
- DependencySource.cs
- BitmapPalettes.cs
- StateMachine.cs
- XmlTextReader.cs
- XmlNodeReader.cs
- ScriptMethodAttribute.cs
- Int32RectConverter.cs
- MetaType.cs
- CompressionTransform.cs
- KnownAssemblyEntry.cs
- DesignerToolStripControlHost.cs
- Debug.cs
- SymDocumentType.cs
- SqlDataSource.cs
- Rect3DConverter.cs
- HtmlInputPassword.cs
- NamespaceMapping.cs
- ColumnMapTranslator.cs
- WebPartConnectionsCancelVerb.cs
- AliasGenerator.cs
- FileRegion.cs
- SiteIdentityPermission.cs
- XmlSchemaAnnotation.cs
- CommandHelper.cs
- SimplePropertyEntry.cs
- ComEventsInfo.cs
- CodeAttributeDeclarationCollection.cs
- Point3DConverter.cs
- InspectionWorker.cs
- Matrix3D.cs
- FixedSOMTable.cs
- MimeFormReflector.cs
- GlyphTypeface.cs
- XmlAnyElementAttribute.cs
- ParserContext.cs
- CustomErrorsSection.cs
- TreeViewHitTestInfo.cs
- CalendarDataBindingHandler.cs
- XmlSchemaInclude.cs
- XmlSchemaGroupRef.cs
- _TimerThread.cs
- SchemaUtility.cs
- DeadCharTextComposition.cs
- WorkflowEventArgs.cs
- ContractBase.cs
- indexingfiltermarshaler.cs
- ResXBuildProvider.cs
- ExpressionsCollectionConverter.cs
- TraceProvider.cs
- BeginSelectCardRequest.cs
- NullRuntimeConfig.cs
- AtomEntry.cs
- XmlTextReaderImplHelpers.cs
- ResetableIterator.cs
- WebRequestModuleElementCollection.cs
- ColorBlend.cs
- KernelTypeValidation.cs
- ListViewCancelEventArgs.cs
- WorkflowLayouts.cs
- CultureInfoConverter.cs
- NavigationService.cs
- ResourceType.cs
- SqlClientFactory.cs
- HttpDictionary.cs
- SoapCodeExporter.cs
- PropertyGroupDescription.cs
- CounterSet.cs
- BindingOperations.cs
- TabItem.cs
- PropertyHelper.cs
- BuildTopDownAttribute.cs
- Completion.cs
- FontEmbeddingManager.cs
- AllowedAudienceUriElement.cs
- securitycriticaldata.cs
- HandlerFactoryCache.cs
- TcpHostedTransportConfiguration.cs
- HtmlInputFile.cs
- SimpleBitVector32.cs