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
- Int64AnimationUsingKeyFrames.cs
- ResourceProviderFactory.cs
- ConfigurationManager.cs
- EtwTrace.cs
- WebBrowserNavigatedEventHandler.cs
- ChtmlImageAdapter.cs
- ByValueEqualityComparer.cs
- ToolStripSystemRenderer.cs
- AngleUtil.cs
- XmlSchemaCollection.cs
- RequestQueue.cs
- SqlNotificationEventArgs.cs
- BuildProviderCollection.cs
- ApplicationDirectory.cs
- XmlEntity.cs
- Utils.cs
- CellLabel.cs
- GraphicsContainer.cs
- _LazyAsyncResult.cs
- TypeHelper.cs
- ByteKeyFrameCollection.cs
- AssemblyFilter.cs
- CodeCommentStatement.cs
- KoreanCalendar.cs
- DnsCache.cs
- XmlQueryCardinality.cs
- TextRangeAdaptor.cs
- DataGridTextBox.cs
- SafeUserTokenHandle.cs
- PropertyMappingExceptionEventArgs.cs
- DeferredReference.cs
- SqlBulkCopyColumnMappingCollection.cs
- WorkflowPersistenceContext.cs
- XmlDataSourceNodeDescriptor.cs
- MarkupExtensionParser.cs
- ProjectedWrapper.cs
- TextEditorMouse.cs
- EditorPartChrome.cs
- TypeConverterHelper.cs
- DynamicValueConverter.cs
- RefType.cs
- MILUtilities.cs
- MDIControlStrip.cs
- WebPartPersonalization.cs
- RadioButtonStandardAdapter.cs
- AsyncOperation.cs
- RefreshEventArgs.cs
- OperatingSystem.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- ClientRuntime.cs
- SocketStream.cs
- TextElementCollectionHelper.cs
- DataServiceQuery.cs
- PointValueSerializer.cs
- RolePrincipal.cs
- EventLogEntryCollection.cs
- TemplateBindingExtension.cs
- ExpressionBuilderCollection.cs
- HtmlContainerControl.cs
- RIPEMD160Managed.cs
- SubpageParagraph.cs
- HttpValueCollection.cs
- SspiNegotiationTokenAuthenticatorState.cs
- QilGenerator.cs
- PackageRelationshipCollection.cs
- DependencyProperty.cs
- PromptEventArgs.cs
- mactripleDES.cs
- CodeMemberMethod.cs
- DetailsViewInsertEventArgs.cs
- XsltInput.cs
- Triplet.cs
- CultureInfo.cs
- ToolStrip.cs
- XmlWriter.cs
- Size3DValueSerializer.cs
- HttpRuntimeSection.cs
- LicenseException.cs
- KeyToListMap.cs
- BuildResult.cs
- SpecularMaterial.cs
- SimpleMailWebEventProvider.cs
- SoapRpcMethodAttribute.cs
- TextParentUndoUnit.cs
- DefinitionProperties.cs
- Rect3D.cs
- DateTimeConverter.cs
- RegionInfo.cs
- UIElement3D.cs
- CacheChildrenQuery.cs
- Timeline.cs
- Serializer.cs
- InfoCardSchemas.cs
- HttpCapabilitiesBase.cs
- EditorPartChrome.cs
- RelatedPropertyManager.cs
- FileLevelControlBuilderAttribute.cs
- Highlights.cs
- RawTextInputReport.cs
- IResourceProvider.cs