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
- ScriptIgnoreAttribute.cs
- PropertyNames.cs
- KeyFrames.cs
- ContainerTracking.cs
- WpfSharedBamlSchemaContext.cs
- ListViewDeletedEventArgs.cs
- IsolatedStoragePermission.cs
- ConnectionStringsExpressionBuilder.cs
- FormatConvertedBitmap.cs
- OleDbReferenceCollection.cs
- EmptyEnumerable.cs
- EventItfInfo.cs
- ColorAnimation.cs
- ButtonStandardAdapter.cs
- HtmlTableCell.cs
- CodeIndexerExpression.cs
- AssemblyNameProxy.cs
- Convert.cs
- QilTargetType.cs
- LocalizableAttribute.cs
- GregorianCalendarHelper.cs
- WindowsTab.cs
- UTF32Encoding.cs
- UIElementHelper.cs
- RNGCryptoServiceProvider.cs
- InvokeMemberBinder.cs
- PaperSize.cs
- SystemBrushes.cs
- DllNotFoundException.cs
- NetPipeSectionData.cs
- SmtpReplyReader.cs
- Stackframe.cs
- BuildDependencySet.cs
- OracleBFile.cs
- UnmanagedMemoryAccessor.cs
- PageHandlerFactory.cs
- TypeDelegator.cs
- CodeTypeConstructor.cs
- StreamReader.cs
- EntityCommandCompilationException.cs
- CompensatableSequenceActivity.cs
- ClientEventManager.cs
- TextMarkerSource.cs
- ToolStripSeparatorRenderEventArgs.cs
- ClientScriptManager.cs
- CssStyleCollection.cs
- Menu.cs
- WebPartHelpVerb.cs
- DateTimeOffsetConverter.cs
- CssClassPropertyAttribute.cs
- MobileTemplatedControlDesigner.cs
- ProcessingInstructionAction.cs
- ThreadInterruptedException.cs
- DataGridColumnStyleMappingNameEditor.cs
- BitHelper.cs
- GACIdentityPermission.cs
- DocumentPageTextView.cs
- PropertyGrid.cs
- LinqDataSourceStatusEventArgs.cs
- DiscoveryReferences.cs
- DependencyPropertyAttribute.cs
- DataChangedEventManager.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- SecurityPolicySection.cs
- SmtpReplyReaderFactory.cs
- SetterBaseCollection.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- UTF32Encoding.cs
- ReaderWriterLock.cs
- CatalogPartChrome.cs
- XmlExceptionHelper.cs
- EventMappingSettingsCollection.cs
- PropertyGridEditorPart.cs
- LambdaCompiler.cs
- GradientStop.cs
- ListControlConvertEventArgs.cs
- BookmarkNameHelper.cs
- Dispatcher.cs
- XmlElementAttributes.cs
- InvalidPrinterException.cs
- Geometry3D.cs
- OneOfElement.cs
- WebPartConnectionCollection.cs
- DataService.cs
- ProfileManager.cs
- StrokeCollection.cs
- PropertyEntry.cs
- DynamicPropertyHolder.cs
- SafeLibraryHandle.cs
- DrawingImage.cs
- HttpListenerRequest.cs
- CommandExpr.cs
- FrameworkReadOnlyPropertyMetadata.cs
- RemotingServices.cs
- VariableAction.cs
- ClientEventManager.cs
- WorkflowViewManager.cs
- DecimalAnimationBase.cs
- XmlComplianceUtil.cs
- ResXResourceWriter.cs