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
- AuthenticationModeHelper.cs
- SQLCharsStorage.cs
- AdjustableArrowCap.cs
- SingleTagSectionHandler.cs
- Mapping.cs
- SyncOperationState.cs
- CompleteWizardStep.cs
- AspNetHostingPermission.cs
- DbInsertCommandTree.cs
- NotificationContext.cs
- Lease.cs
- SafeRightsManagementQueryHandle.cs
- UseAttributeSetsAction.cs
- DefaultTraceListener.cs
- HttpListenerResponse.cs
- LockingPersistenceProvider.cs
- DesignTimeData.cs
- SqlXml.cs
- TextTrailingCharacterEllipsis.cs
- WorkflowValidationFailedException.cs
- FileSystemInfo.cs
- HtmlElement.cs
- HostProtectionException.cs
- GridViewCancelEditEventArgs.cs
- PeerEndPoint.cs
- WebMessageBodyStyleHelper.cs
- ButtonPopupAdapter.cs
- Cursors.cs
- RelativeSource.cs
- SqlSelectStatement.cs
- ViewGenerator.cs
- MouseCaptureWithinProperty.cs
- WebServicesInteroperability.cs
- DbProviderManifest.cs
- GridViewRowCollection.cs
- SqlConnectionPoolProviderInfo.cs
- BindingEditor.xaml.cs
- UpdateEventArgs.cs
- ImageKeyConverter.cs
- ProxyGenerationError.cs
- ChameleonKey.cs
- _ConnectOverlappedAsyncResult.cs
- Dictionary.cs
- TemplatePartAttribute.cs
- XmlUrlResolver.cs
- WebSysDefaultValueAttribute.cs
- WebPartConnectionsConfigureVerb.cs
- RoleGroupCollection.cs
- WinEventTracker.cs
- compensatingcollection.cs
- StrongNameIdentityPermission.cs
- TaiwanCalendar.cs
- X509CertificateEndpointIdentity.cs
- WebRequestModulesSection.cs
- ListDictionary.cs
- WriteStateInfoBase.cs
- CustomAttributeBuilder.cs
- ClientConfigurationSystem.cs
- DataGridPagerStyle.cs
- ControlEvent.cs
- BaseDataList.cs
- EarlyBoundInfo.cs
- Int64Storage.cs
- HtmlInputReset.cs
- Context.cs
- BinaryUtilClasses.cs
- InfoCardSymmetricAlgorithm.cs
- BlurBitmapEffect.cs
- ConfigurationSettings.cs
- SamlEvidence.cs
- ISAPIApplicationHost.cs
- GuidelineSet.cs
- KeyGestureValueSerializer.cs
- PropertyPushdownHelper.cs
- PcmConverter.cs
- HtmlShimManager.cs
- CalculatedColumn.cs
- NativeMethods.cs
- ChainedAsyncResult.cs
- ConfigXmlDocument.cs
- MimeObjectFactory.cs
- MaskedTextBox.cs
- ColumnBinding.cs
- StructuredTypeEmitter.cs
- HTTPAPI_VERSION.cs
- HopperCache.cs
- PassportIdentity.cs
- PropertyInfoSet.cs
- MsmqAppDomainProtocolHandler.cs
- StdValidatorsAndConverters.cs
- CommandValueSerializer.cs
- ReferencedType.cs
- StatusBarPanel.cs
- PageDeviceFont.cs
- DecoderFallback.cs
- ListControl.cs
- NotCondition.cs
- HostSecurityManager.cs
- CodeExporter.cs
- Application.cs