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
- PrintPreviewDialog.cs
- MenuTracker.cs
- DataServiceQuery.cs
- SoapParser.cs
- AsyncContentLoadedEventArgs.cs
- IisTraceWebEventProvider.cs
- ActivityInterfaces.cs
- dsa.cs
- SystemWebSectionGroup.cs
- HandleCollector.cs
- XsltSettings.cs
- ProcessHost.cs
- ByteStreamMessageEncoderFactory.cs
- WebBodyFormatMessageProperty.cs
- DBConnection.cs
- AnimationLayer.cs
- PersonalizationEntry.cs
- ResourceAttributes.cs
- ServiceDescription.cs
- AppliedDeviceFiltersEditor.cs
- IWorkflowDebuggerService.cs
- ConfigurationHandlersInstallComponent.cs
- WebConfigurationHost.cs
- WindowVisualStateTracker.cs
- RotateTransform.cs
- BitmapPalettes.cs
- ListControl.cs
- ContentFilePart.cs
- XmlAttributeProperties.cs
- DependencySource.cs
- WebPartTracker.cs
- XmlSchema.cs
- DiscoveryViaBehavior.cs
- login.cs
- CodeIterationStatement.cs
- DataContractJsonSerializer.cs
- WebBrowserBase.cs
- PostBackTrigger.cs
- StreamReader.cs
- HTMLTextWriter.cs
- Claim.cs
- DynamicDataExtensions.cs
- ConnectionOrientedTransportBindingElement.cs
- MDIClient.cs
- SystemIcmpV6Statistics.cs
- HttpEncoderUtility.cs
- ListViewTableCell.cs
- SchemaNamespaceManager.cs
- RegexMatchCollection.cs
- TransactionScope.cs
- OdbcHandle.cs
- HandleExceptionArgs.cs
- DataListItem.cs
- InstanceDataCollection.cs
- CodeParameterDeclarationExpression.cs
- FacetDescription.cs
- ExitEventArgs.cs
- IEnumerable.cs
- InstancePersistence.cs
- DefaultIfEmptyQueryOperator.cs
- HtmlLink.cs
- PopOutPanel.cs
- SmiRecordBuffer.cs
- ParagraphVisual.cs
- DataGridViewBand.cs
- DropShadowEffect.cs
- UpdateManifestForBrowserApplication.cs
- UncommonField.cs
- ConfigXmlElement.cs
- XmlSchemaRedefine.cs
- WpfGeneratedKnownProperties.cs
- CompatibleComparer.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- ReflectPropertyDescriptor.cs
- ConfigPathUtility.cs
- PathNode.cs
- TransactionProtocolConverter.cs
- XmlConvert.cs
- Volatile.cs
- QilValidationVisitor.cs
- wmiprovider.cs
- _NestedMultipleAsyncResult.cs
- SqlTypeSystemProvider.cs
- StylusPointCollection.cs
- Calendar.cs
- ComponentDispatcher.cs
- LowerCaseStringConverter.cs
- WebZoneDesigner.cs
- WeakRefEnumerator.cs
- SystemIPGlobalStatistics.cs
- RtfControlWordInfo.cs
- XmlNamespaceMapping.cs
- LabelAutomationPeer.cs
- TreeNode.cs
- HierarchicalDataSourceIDConverter.cs
- DefaultBindingPropertyAttribute.cs
- IFormattable.cs
- UserUseLicenseDictionaryLoader.cs
- SignatureResourcePool.cs
- ImageCodecInfo.cs