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
- _NTAuthentication.cs
- GlyphShapingProperties.cs
- DataControlFieldCollection.cs
- ipaddressinformationcollection.cs
- UpdateInfo.cs
- COM2FontConverter.cs
- EFDataModelProvider.cs
- ViewDesigner.cs
- Compress.cs
- BufferedGraphicsContext.cs
- XmlNotation.cs
- CodeFieldReferenceExpression.cs
- DesigntimeLicenseContext.cs
- DateTimeParse.cs
- ApplicationCommands.cs
- ListenerAdapter.cs
- ExpressionLexer.cs
- Literal.cs
- TemplateControlBuildProvider.cs
- FixedPageStructure.cs
- OrderingInfo.cs
- TransformerConfigurationWizardBase.cs
- SafeNativeMethods.cs
- Line.cs
- SiteMapProvider.cs
- DataGridColumnCollection.cs
- PersistChildrenAttribute.cs
- MexHttpsBindingElement.cs
- HtmlFormAdapter.cs
- TreeNodeMouseHoverEvent.cs
- DeferredReference.cs
- RequestQueryProcessor.cs
- ColumnHeaderConverter.cs
- iisPickupDirectory.cs
- RequestQueue.cs
- CancelEventArgs.cs
- SchemaObjectWriter.cs
- GradientSpreadMethodValidation.cs
- StrokeIntersection.cs
- GlobalProxySelection.cs
- WizardPanelChangingEventArgs.cs
- BitmapData.cs
- WizardForm.cs
- AbstractSvcMapFileLoader.cs
- Validator.cs
- ResourceProperty.cs
- VirtualizedItemPattern.cs
- CodePrimitiveExpression.cs
- CodeLinePragma.cs
- Helper.cs
- PropertyGridEditorPart.cs
- PropertyEmitter.cs
- XmlSchemaComplexContentRestriction.cs
- SimpleBitVector32.cs
- SizeConverter.cs
- XmlImplementation.cs
- KeyboardNavigation.cs
- XmlSchemaCollection.cs
- IsolatedStorage.cs
- DataGridViewColumnCollection.cs
- ResponseStream.cs
- SinglePhaseEnlistment.cs
- ManagementObject.cs
- ImageMapEventArgs.cs
- HitTestDrawingContextWalker.cs
- ScrollChangedEventArgs.cs
- XmlAnyAttributeAttribute.cs
- CompositeTypefaceMetrics.cs
- IconConverter.cs
- AssociationTypeEmitter.cs
- _ListenerAsyncResult.cs
- StreamSecurityUpgradeAcceptor.cs
- XmlSchemaAttribute.cs
- WmiPutTraceRecord.cs
- DbMetaDataColumnNames.cs
- MsmqIntegrationProcessProtocolHandler.cs
- WebServiceData.cs
- Mapping.cs
- ReferenceSchema.cs
- BindingExpressionBase.cs
- RuleSetDialog.cs
- ConsumerConnectionPoint.cs
- XmlRawWriterWrapper.cs
- FixedSOMTable.cs
- StructuredType.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ParseElementCollection.cs
- GridViewSortEventArgs.cs
- DataColumnCollection.cs
- BamlResourceDeserializer.cs
- DSACryptoServiceProvider.cs
- ListControlConvertEventArgs.cs
- IPipelineRuntime.cs
- Accessible.cs
- CrossContextChannel.cs
- MulticastOption.cs
- LocalFileSettingsProvider.cs
- COM2IProvidePropertyBuilderHandler.cs
- QilTargetType.cs
- ToolStripProgressBar.cs