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
- ZipIOExtraFieldPaddingElement.cs
- DoubleCollection.cs
- ProgressiveCrcCalculatingStream.cs
- DataGridCommandEventArgs.cs
- InvokePattern.cs
- OdbcUtils.cs
- PropertyChangeTracker.cs
- DataGridViewImageCell.cs
- TextCompositionEventArgs.cs
- WsdlImporter.cs
- DynamicPropertyHolder.cs
- ConditionalExpression.cs
- AssemblyAssociatedContentFileAttribute.cs
- ComponentChangingEvent.cs
- WindowsProgressbar.cs
- hresults.cs
- GradientStop.cs
- CaseKeyBox.xaml.cs
- MinimizableAttributeTypeConverter.cs
- DataSourceControlBuilder.cs
- Exceptions.cs
- UiaCoreTypesApi.cs
- Object.cs
- HttpResponse.cs
- HttpCookie.cs
- ContentHostHelper.cs
- HScrollBar.cs
- StatusBarPanelClickEvent.cs
- DataGridViewHitTestInfo.cs
- Socket.cs
- RSAPKCS1KeyExchangeFormatter.cs
- COM2TypeInfoProcessor.cs
- SafeEventLogWriteHandle.cs
- TextCompositionEventArgs.cs
- wgx_render.cs
- RoleGroup.cs
- ToolStripContentPanel.cs
- StoreItemCollection.Loader.cs
- PointLightBase.cs
- IQueryable.cs
- DrawingAttributeSerializer.cs
- ValidationRule.cs
- PackageProperties.cs
- TcpTransportSecurity.cs
- Msec.cs
- HashAlgorithm.cs
- FilterQuery.cs
- SystemException.cs
- XmlValidatingReader.cs
- ApplicationServiceManager.cs
- Dispatcher.cs
- AccessDataSourceView.cs
- DiscoveryServerProtocol.cs
- DataGridColumnCollection.cs
- Light.cs
- LockedActivityGlyph.cs
- LinkGrep.cs
- HandoffBehavior.cs
- DataSourceProvider.cs
- ComUdtElementCollection.cs
- ScriptManager.cs
- RepeatBehavior.cs
- StringAnimationBase.cs
- Base64Encoder.cs
- SetMemberBinder.cs
- ExpressionConverter.cs
- Solver.cs
- AspNetCompatibilityRequirementsAttribute.cs
- QueryPageSettingsEventArgs.cs
- CommandBinding.cs
- ToolBarOverflowPanel.cs
- SchemaComplexType.cs
- glyphs.cs
- Point3DCollectionConverter.cs
- Span.cs
- PowerStatus.cs
- XmlBoundElement.cs
- RelAssertionDirectKeyIdentifierClause.cs
- SortKey.cs
- ButtonFlatAdapter.cs
- ParseChildrenAsPropertiesAttribute.cs
- Pair.cs
- BreakRecordTable.cs
- IISMapPath.cs
- ZoneIdentityPermission.cs
- ClaimTypeElementCollection.cs
- RegexMatch.cs
- XmlSchemaParticle.cs
- HiddenFieldPageStatePersister.cs
- LinqDataSource.cs
- XmlResolver.cs
- ObjectAnimationUsingKeyFrames.cs
- ColorIndependentAnimationStorage.cs
- WeakReferenceKey.cs
- SafePointer.cs
- Facet.cs
- BindableTemplateBuilder.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- DesignerVerb.cs
- TextServicesCompartment.cs