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
- ContentType.cs
- HitTestFilterBehavior.cs
- FactoryRecord.cs
- PrivateFontCollection.cs
- BaseInfoTable.cs
- UInt64Converter.cs
- ConfigurationLocation.cs
- Compilation.cs
- Property.cs
- OdbcConnection.cs
- RuntimeComponentFilter.cs
- BaseTreeIterator.cs
- WSUtilitySpecificationVersion.cs
- XamlHostingSection.cs
- ChannelTokenTypeConverter.cs
- BindingManagerDataErrorEventArgs.cs
- Literal.cs
- SortQuery.cs
- GroupQuery.cs
- CodeDelegateCreateExpression.cs
- AdPostCacheSubstitution.cs
- Int32Rect.cs
- _RegBlobWebProxyDataBuilder.cs
- AuthorizationRule.cs
- IChannel.cs
- MulticastNotSupportedException.cs
- PointConverter.cs
- OracleNumber.cs
- AppDomainShutdownMonitor.cs
- DataRow.cs
- GlobalEventManager.cs
- HttpListenerRequestTraceRecord.cs
- PersianCalendar.cs
- ControlParameter.cs
- MessageFilter.cs
- SessionStateContainer.cs
- DbDataAdapter.cs
- EventProviderWriter.cs
- OleDbWrapper.cs
- BindingMemberInfo.cs
- TraceContextEventArgs.cs
- OdbcConnectionStringbuilder.cs
- SystemDiagnosticsSection.cs
- PerformanceCounter.cs
- HwndSourceKeyboardInputSite.cs
- CalendarTable.cs
- BasicHttpMessageCredentialType.cs
- LineBreakRecord.cs
- UniqueEventHelper.cs
- XmlAttributeOverrides.cs
- TextPointer.cs
- InternalEnumValidator.cs
- Transform3DGroup.cs
- ConfigurationStrings.cs
- DataDocumentXPathNavigator.cs
- SmtpSection.cs
- BreakRecordTable.cs
- RadioButtonStandardAdapter.cs
- PolicyValidator.cs
- WebPartDescriptionCollection.cs
- RegistrationServices.cs
- BamlResourceSerializer.cs
- DocumentOutline.cs
- IPAddressCollection.cs
- _Events.cs
- FileLoadException.cs
- SerializationFieldInfo.cs
- SiteIdentityPermission.cs
- AdornerDecorator.cs
- DefaultBinder.cs
- InvokerUtil.cs
- MultipleViewPattern.cs
- EditorPartChrome.cs
- StringAttributeCollection.cs
- DateTimeOffset.cs
- IIS7WorkerRequest.cs
- SQLRoleProvider.cs
- ObjectToken.cs
- FilterException.cs
- StringInfo.cs
- XpsS0ValidatingLoader.cs
- ColumnHeaderConverter.cs
- CompositeActivityDesigner.cs
- ToolStripItemDataObject.cs
- FileVersionInfo.cs
- CultureInfoConverter.cs
- ClipboardData.cs
- TreeBuilder.cs
- TextTreeUndoUnit.cs
- StringSorter.cs
- ViewStateException.cs
- DocumentXPathNavigator.cs
- WindowsListViewGroup.cs
- SqlRowUpdatedEvent.cs
- DataGridCellEditEndingEventArgs.cs
- RawAppCommandInputReport.cs
- ImageDrawing.cs
- DataServiceBehavior.cs
- HealthMonitoringSectionHelper.cs
- FixUpCollection.cs