Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataSet / System / Data / SortExpressionBuilder.cs / 1305376 / SortExpressionBuilder.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections; using System.Text; using System.Data; using System.Linq; using System.Diagnostics; namespace System.Data { ////// This class represents a combined sort expression build using mutiple sort expressions. /// ///internal class SortExpressionBuilder : IComparer > { /** * This class ensures multiple orderby/thenbys are handled correctly. Its semantics is as follows: * * Query 1: * orderby a * thenby b * orderby c * orderby d * thenby e * * is equivalent to: * * Query 2: * orderby d * thenby e * thenby c * thenby a * thenby b * **/ //Selectors and comparers are mapped using the index in the list. //E.g: _comparers[i] is used with _selectors[i] LinkedList
> _selectors = new LinkedList >(); LinkedList > _comparers = new LinkedList >(); LinkedListNode > _currentSelector = null; LinkedListNode > _currentComparer = null; /// /// Adds a sorting selector/comparer in the correct order /// internal void Add(FunckeySelector, Comparison
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectStorage.cs
- TimeoutException.cs
- ApplicationBuildProvider.cs
- ProcessHostFactoryHelper.cs
- HtmlMeta.cs
- DefaultParameterValueAttribute.cs
- PageHandlerFactory.cs
- RealizationContext.cs
- DynamicPropertyReader.cs
- SkipQueryOptionExpression.cs
- RoleManagerEventArgs.cs
- Vector3DCollection.cs
- QilLoop.cs
- Style.cs
- MeasureItemEvent.cs
- SiteMapPath.cs
- SQLCharsStorage.cs
- WebBrowserSiteBase.cs
- UIElement.cs
- ColumnHeaderConverter.cs
- CompositeActivityValidator.cs
- HttpCachePolicyWrapper.cs
- XmlAtomicValue.cs
- ReferenceSchema.cs
- RegexGroup.cs
- VectorAnimationUsingKeyFrames.cs
- VBCodeProvider.cs
- WindowsSlider.cs
- EncryptedPackageFilter.cs
- ExceptionHandler.cs
- DictionaryKeyPropertyAttribute.cs
- DataGridViewTextBoxColumn.cs
- CustomErrorsSectionWrapper.cs
- ShaperBuffers.cs
- SchemaTableOptionalColumn.cs
- BamlLocalizableResource.cs
- ComboBoxAutomationPeer.cs
- EventSinkHelperWriter.cs
- ProtocolViolationException.cs
- TextLine.cs
- HotSpot.cs
- CodeMemberProperty.cs
- LOSFormatter.cs
- AuthenticateEventArgs.cs
- HttpCapabilitiesBase.cs
- JapaneseLunisolarCalendar.cs
- WhitespaceRule.cs
- ServiceBuildProvider.cs
- ProgressiveCrcCalculatingStream.cs
- DragDrop.cs
- TextOptions.cs
- GenericPrincipal.cs
- MulticastDelegate.cs
- Visual3DCollection.cs
- ShadowGlyph.cs
- AssemblyAttributesGoHere.cs
- ImportContext.cs
- Mouse.cs
- CodeFieldReferenceExpression.cs
- FieldNameLookup.cs
- LogPolicy.cs
- SponsorHelper.cs
- DataControlLinkButton.cs
- VisualStyleTypesAndProperties.cs
- LinqDataSource.cs
- LiteralLink.cs
- HwndKeyboardInputProvider.cs
- ConvertersCollection.cs
- TaskFileService.cs
- SemanticAnalyzer.cs
- EventListener.cs
- EffectiveValueEntry.cs
- MediaPlayerState.cs
- GiveFeedbackEventArgs.cs
- ProfileSettings.cs
- WebConfigurationHostFileChange.cs
- HierarchicalDataSourceControl.cs
- CommandEventArgs.cs
- MatrixTransform3D.cs
- Rect3DConverter.cs
- SiteMap.cs
- RoutedCommand.cs
- columnmapfactory.cs
- RestHandler.cs
- ButtonAutomationPeer.cs
- RolePrincipal.cs
- ContainerSelectorActiveEvent.cs
- TdsRecordBufferSetter.cs
- DataMisalignedException.cs
- XmlSiteMapProvider.cs
- PlaceHolder.cs
- ComPlusTraceRecord.cs
- CharacterHit.cs
- ThemeableAttribute.cs
- SingleStorage.cs
- ObjectViewEntityCollectionData.cs
- DataRelationCollection.cs
- SweepDirectionValidation.cs
- NumericUpDown.cs
- CqlLexer.cs