Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / ALinq / OrderByQueryOptionExpression.cs / 1 / OrderByQueryOptionExpression.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Respresents a OrderBy query option in resource bound expression tree.
//
//
// @owner [....]
//---------------------------------------------------------------------
namespace System.Data.Services.Client
{
using System.Linq.Expressions;
using System.Collections.Generic;
using System;
///
/// An resource specific expression representing a OrderBy query option.
///
internal class OrderByQueryOptionExpression : QueryOptionExpression
{
/// selectors for OrderBy query option
private List selectors;
///
/// Creates a OrderByQueryOptionExpression expression
///
/// the return type of the expression
/// selectors for orderby expression
internal OrderByQueryOptionExpression(Type type, List selectors)
: base((ExpressionType)ResourceExpressionType.OrderByQueryOption, type)
{
this.selectors = selectors;
}
///
/// Selectors for OrderBy expression
///
internal List Selectors
{
get
{
return this.selectors;
}
}
///
/// Structure for selectors. Holds lambda expression + flag indicating desc.
///
internal struct Selector
{
///
/// lambda expression for selector
///
internal readonly Expression Expression;
///
/// flag indicating if descending
///
internal readonly bool Descending;
///
/// Creates a Selector
///
/// lambda expression for selector
/// flag indicating if descending
internal Selector(Expression e, bool descending)
{
this.Expression = e;
this.Descending = descending;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Respresents a OrderBy query option in resource bound expression tree.
//
//
// @owner [....]
//---------------------------------------------------------------------
namespace System.Data.Services.Client
{
using System.Linq.Expressions;
using System.Collections.Generic;
using System;
///
/// An resource specific expression representing a OrderBy query option.
///
internal class OrderByQueryOptionExpression : QueryOptionExpression
{
/// selectors for OrderBy query option
private List selectors;
///
/// Creates a OrderByQueryOptionExpression expression
///
/// the return type of the expression
/// selectors for orderby expression
internal OrderByQueryOptionExpression(Type type, List selectors)
: base((ExpressionType)ResourceExpressionType.OrderByQueryOption, type)
{
this.selectors = selectors;
}
///
/// Selectors for OrderBy expression
///
internal List Selectors
{
get
{
return this.selectors;
}
}
///
/// Structure for selectors. Holds lambda expression + flag indicating desc.
///
internal struct Selector
{
///
/// lambda expression for selector
///
internal readonly Expression Expression;
///
/// flag indicating if descending
///
internal readonly bool Descending;
///
/// Creates a Selector
///
/// lambda expression for selector
/// flag indicating if descending
internal Selector(Expression e, bool descending)
{
this.Expression = e;
this.Descending = descending;
}
}
}
}
// 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
- Number.cs
- Rotation3D.cs
- BatchWriter.cs
- TextBoxBase.cs
- ServiceModelSecurityTokenTypes.cs
- OletxDependentTransaction.cs
- XmlSerializationWriter.cs
- GeneralTransform3D.cs
- BaseTemplatedMobileComponentEditor.cs
- HttpListenerRequest.cs
- ComNativeDescriptor.cs
- HiddenField.cs
- SoapEnumAttribute.cs
- DbProviderSpecificTypePropertyAttribute.cs
- EventMappingSettings.cs
- HttpProfileGroupBase.cs
- HTMLTagNameToTypeMapper.cs
- QueryResponse.cs
- BufferModeSettings.cs
- ConfigurationValidatorAttribute.cs
- Variable.cs
- WebPartRestoreVerb.cs
- ToolstripProfessionalRenderer.cs
- CodeDomDecompiler.cs
- ToolboxItemAttribute.cs
- Subtree.cs
- ReturnType.cs
- SiteMapNodeItemEventArgs.cs
- DataSourceXmlAttributeAttribute.cs
- WebBrowser.cs
- DataConnectionHelper.cs
- SubMenuStyleCollection.cs
- MailSettingsSection.cs
- RolePrincipal.cs
- KnownTypesProvider.cs
- StringWriter.cs
- ContextBase.cs
- AssemblyInfo.cs
- StorageInfo.cs
- Misc.cs
- ElementProxy.cs
- Keywords.cs
- ExtensionElementCollection.cs
- SortedList.cs
- ExceptionValidationRule.cs
- NetworkCredential.cs
- ConfigurationElement.cs
- DomainUpDown.cs
- ButtonChrome.cs
- CodeExpressionCollection.cs
- TransformDescriptor.cs
- XmlConvert.cs
- AnimatedTypeHelpers.cs
- XmlSchemaObject.cs
- TextTreeExtractElementUndoUnit.cs
- RuntimeCompatibilityAttribute.cs
- ManipulationInertiaStartingEventArgs.cs
- CompareInfo.cs
- DrawListViewColumnHeaderEventArgs.cs
- CollectionView.cs
- _CommandStream.cs
- ProxyAttribute.cs
- ManagementBaseObject.cs
- Empty.cs
- WebPartsPersonalization.cs
- XmlSchemaAny.cs
- LambdaCompiler.Statements.cs
- _SSPIWrapper.cs
- FunctionQuery.cs
- HwndHost.cs
- DateTime.cs
- AccessText.cs
- GlyphRunDrawing.cs
- SqlDataSourceQuery.cs
- SmtpNtlmAuthenticationModule.cs
- NameValuePair.cs
- Query.cs
- HttpRuntime.cs
- XsltArgumentList.cs
- UrlMapping.cs
- ConstraintManager.cs
- DataObject.cs
- GridViewCellAutomationPeer.cs
- LambdaReference.cs
- ToolStripMenuItem.cs
- PostBackOptions.cs
- OleDbCommandBuilder.cs
- TextElementEnumerator.cs
- PageAsyncTask.cs
- ConfigurationPermission.cs
- SqlNotificationRequest.cs
- Attribute.cs
- ObjectContext.cs
- Thumb.cs
- DispatcherExceptionEventArgs.cs
- MemoryRecordBuffer.cs
- GeneralTransform3D.cs
- LiteralSubsegment.cs
- ResourceManager.cs
- ProxyManager.cs