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
- EncoderReplacementFallback.cs
- PKCS1MaskGenerationMethod.cs
- DependencyPropertyConverter.cs
- ComContractElementCollection.cs
- ExistsInCollection.cs
- ActiveDocumentEvent.cs
- QuadTree.cs
- InfoCardBaseException.cs
- XmlLinkedNode.cs
- TextElementEnumerator.cs
- StubHelpers.cs
- ParallelSeparator.xaml.cs
- X509ChainPolicy.cs
- MouseButtonEventArgs.cs
- XmlSchemaImporter.cs
- securitycriticaldataClass.cs
- WebPartZoneCollection.cs
- httpapplicationstate.cs
- Soap12ProtocolReflector.cs
- AnnotationResourceCollection.cs
- TimeSpanStorage.cs
- StructuredCompositeActivityDesigner.cs
- ResourceBinder.cs
- RecordManager.cs
- KeyValuePairs.cs
- StyleModeStack.cs
- OleDbFactory.cs
- Translator.cs
- ErrorTableItemStyle.cs
- ToolStripDropDownMenu.cs
- WebPartDisplayModeCancelEventArgs.cs
- XsdBuilder.cs
- CustomWebEventKey.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- Compiler.cs
- FactoryGenerator.cs
- ScrollProperties.cs
- InstallerTypeAttribute.cs
- DebugHandleTracker.cs
- TrackingMemoryStream.cs
- SerializationException.cs
- HostingEnvironmentSection.cs
- RegionIterator.cs
- BindingValueChangedEventArgs.cs
- PanelStyle.cs
- DbModificationClause.cs
- MarshalByValueComponent.cs
- NamespaceCollection.cs
- EnumValAlphaComparer.cs
- UserUseLicenseDictionaryLoader.cs
- SelectedDatesCollection.cs
- ArrayHelper.cs
- __FastResourceComparer.cs
- SqlBulkCopyColumnMapping.cs
- SiteOfOriginContainer.cs
- NotifyIcon.cs
- MimeObjectFactory.cs
- TdsValueSetter.cs
- SystemUdpStatistics.cs
- TextCompositionManager.cs
- PageParser.cs
- KeyedHashAlgorithm.cs
- InheritedPropertyChangedEventArgs.cs
- StoreContentChangedEventArgs.cs
- DefaultAsyncDataDispatcher.cs
- FaultContext.cs
- BitSet.cs
- SelectorAutomationPeer.cs
- BindStream.cs
- ConnectionProviderAttribute.cs
- WebEncodingValidatorAttribute.cs
- Buffer.cs
- SymLanguageVendor.cs
- AnimationClock.cs
- ProfilePropertySettings.cs
- TextBoxAutomationPeer.cs
- MarkupExtensionReturnTypeAttribute.cs
- EntityCodeGenerator.cs
- MemberNameValidator.cs
- RegexNode.cs
- LinearGradientBrush.cs
- IsolatedStorageException.cs
- InvalidateEvent.cs
- DoubleCollectionConverter.cs
- DivideByZeroException.cs
- DataSourceGeneratorException.cs
- SessionIDManager.cs
- SafeRightsManagementPubHandle.cs
- DataGridGeneralPage.cs
- XamlFilter.cs
- WaveHeader.cs
- WebPartTransformerCollection.cs
- SoapCodeExporter.cs
- ILGenerator.cs
- DeadCharTextComposition.cs
- LabelLiteral.cs
- Italic.cs
- FileReservationCollection.cs
- SqlServer2KCompatibilityAnnotation.cs
- DesignerUtils.cs