Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / ALinq / ProjectionQueryOptionExpression.cs / 1305376 / ProjectionQueryOptionExpression.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Respresents a projection query option in resource bound expression tree. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Client { #region Namespaces. using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq.Expressions; #endregion Namespaces. ////// An resource specific expression representing a projection query option. /// internal class ProjectionQueryOptionExpression : QueryOptionExpression { #region Private fields. ///projection expression to evaluate on client on results from server to materialize type private readonly LambdaExpression lambda; ///projection paths to send to the server private readonly Listpaths; #endregion Private fields. /// /// Creates a ProjectionQueryOption expression /// /// the return type of the expression /// projection expression /// Projection paths for the query option internal ProjectionQueryOptionExpression(Type type, LambdaExpression lambda, Listpaths) : base((ExpressionType)ResourceExpressionType.ProjectionQueryOption, type) { Debug.Assert(type != null, "type != null"); Debug.Assert(lambda != null, "lambda != null"); Debug.Assert(paths != null, "paths != null"); this.lambda = lambda; this.paths = paths; } #region Internal properties. /// /// expression for the projection /// internal LambdaExpression Selector { get { return this.lambda; } } ////// expression for the projection /// internal ListPaths { get { return this.paths; } } #endregion Internal properties. } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // //// Respresents a projection query option in resource bound expression tree. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Client { #region Namespaces. using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq.Expressions; #endregion Namespaces. ////// An resource specific expression representing a projection query option. /// internal class ProjectionQueryOptionExpression : QueryOptionExpression { #region Private fields. ///projection expression to evaluate on client on results from server to materialize type private readonly LambdaExpression lambda; ///projection paths to send to the server private readonly Listpaths; #endregion Private fields. /// /// Creates a ProjectionQueryOption expression /// /// the return type of the expression /// projection expression /// Projection paths for the query option internal ProjectionQueryOptionExpression(Type type, LambdaExpression lambda, Listpaths) : base((ExpressionType)ResourceExpressionType.ProjectionQueryOption, type) { Debug.Assert(type != null, "type != null"); Debug.Assert(lambda != null, "lambda != null"); Debug.Assert(paths != null, "paths != null"); this.lambda = lambda; this.paths = paths; } #region Internal properties. /// /// expression for the projection /// internal LambdaExpression Selector { get { return this.lambda; } } ////// expression for the projection /// internal ListPaths { get { return this.paths; } } #endregion Internal properties. } } // 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
- securitymgrsite.cs
- StreamingContext.cs
- ModulesEntry.cs
- DropShadowBitmapEffect.cs
- MethodBuilder.cs
- BindableAttribute.cs
- DataPagerFieldItem.cs
- ReaderWriterLock.cs
- BitmapEffectGroup.cs
- Literal.cs
- SyntaxCheck.cs
- RouteValueExpressionBuilder.cs
- MeasurementDCInfo.cs
- StateWorkerRequest.cs
- EntityWithChangeTrackerStrategy.cs
- RawStylusSystemGestureInputReport.cs
- ListView.cs
- WindowsTreeView.cs
- AssemblyUtil.cs
- StretchValidation.cs
- Marshal.cs
- ErrorHandler.cs
- DPCustomTypeDescriptor.cs
- EdmTypeAttribute.cs
- SymbolType.cs
- XmlReaderSettings.cs
- cookieexception.cs
- Behavior.cs
- CollectionView.cs
- CacheOutputQuery.cs
- XmlValueConverter.cs
- ZipIOBlockManager.cs
- ObfuscateAssemblyAttribute.cs
- PrintPreviewControl.cs
- EventListenerClientSide.cs
- ProcessThreadCollection.cs
- PropertyValueUIItem.cs
- FrameworkElement.cs
- COM2ExtendedBrowsingHandler.cs
- BamlVersionHeader.cs
- ErrorLog.cs
- VisualTarget.cs
- DivideByZeroException.cs
- _TimerThread.cs
- PageCatalogPart.cs
- Size3DConverter.cs
- SiteIdentityPermission.cs
- GeometryHitTestParameters.cs
- BuildResult.cs
- NamespaceEmitter.cs
- NavigatorOutput.cs
- WinOEToolBoxItem.cs
- SQLInt16Storage.cs
- PrePrepareMethodAttribute.cs
- SplitterEvent.cs
- DrawingContextDrawingContextWalker.cs
- MouseActionValueSerializer.cs
- Int32Converter.cs
- BaseValidatorDesigner.cs
- RoutedEventConverter.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- BooleanExpr.cs
- MutexSecurity.cs
- LayoutUtils.cs
- ToolboxComponentsCreatingEventArgs.cs
- BufferAllocator.cs
- DbMetaDataCollectionNames.cs
- DataColumnMapping.cs
- OpacityConverter.cs
- DeflateStreamAsyncResult.cs
- ServiceObjectContainer.cs
- mactripleDES.cs
- Item.cs
- Attributes.cs
- DataSysAttribute.cs
- securitymgrsite.cs
- VScrollBar.cs
- SqlReferenceCollection.cs
- DocumentGridPage.cs
- WorkflowNamespace.cs
- PageParser.cs
- XmlSchemaSimpleContent.cs
- VisualStyleElement.cs
- FunctionOverloadResolver.cs
- Timer.cs
- FormViewDeletedEventArgs.cs
- PtsHelper.cs
- Inflater.cs
- WebPartZone.cs
- Automation.cs
- AudioFormatConverter.cs
- ControlIdConverter.cs
- ConvertBinder.cs
- XamlVector3DCollectionSerializer.cs
- FilterException.cs
- DocumentViewerConstants.cs
- EditorPartDesigner.cs
- TypeForwardedToAttribute.cs
- OutputCacheModule.cs
- InputProcessorProfilesLoader.cs