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
- EmptyControlCollection.cs
- CustomAttributeBuilder.cs
- TagPrefixAttribute.cs
- MessageBox.cs
- UnmanagedHandle.cs
- Evidence.cs
- DataGridViewElement.cs
- EncodingInfo.cs
- LinkButton.cs
- HttpsHostedTransportConfiguration.cs
- ConfigXmlComment.cs
- SqlClientMetaDataCollectionNames.cs
- TextRangeProviderWrapper.cs
- FontUnitConverter.cs
- MissingSatelliteAssemblyException.cs
- TypeUsageBuilder.cs
- NamedElement.cs
- PropertyValueChangedEvent.cs
- GenericTypeParameterConverter.cs
- IfAction.cs
- TriggerBase.cs
- VectorCollectionValueSerializer.cs
- AuthenticationConfig.cs
- EventToken.cs
- FrameworkContentElement.cs
- ProtocolViolationException.cs
- SerialPinChanges.cs
- TableLayoutPanel.cs
- DbDataRecord.cs
- PropertyPathConverter.cs
- IncrementalReadDecoders.cs
- MyContact.cs
- MetadataArtifactLoader.cs
- GridViewPageEventArgs.cs
- InputBuffer.cs
- AudioDeviceOut.cs
- DataMisalignedException.cs
- DependencyProperty.cs
- BaseAsyncResult.cs
- FormsAuthenticationUserCollection.cs
- RoamingStoreFile.cs
- Dictionary.cs
- MruCache.cs
- TraceEventCache.cs
- WorkflowRuntimeSection.cs
- WebPartVerb.cs
- SmtpCommands.cs
- CompilerScope.Storage.cs
- RightsManagementInformation.cs
- ReplyAdapterChannelListener.cs
- DecoratedNameAttribute.cs
- CurrencyWrapper.cs
- HttpDictionary.cs
- VisualStateChangedEventArgs.cs
- GraphicsPathIterator.cs
- WebPartEditorOkVerb.cs
- ReadOnlyPropertyMetadata.cs
- DataGridTableCollection.cs
- Solver.cs
- Hex.cs
- ToolTip.cs
- Bold.cs
- RenderCapability.cs
- NumberSubstitution.cs
- PathParser.cs
- DataColumnChangeEvent.cs
- TypeConverterHelper.cs
- ReflectPropertyDescriptor.cs
- Keywords.cs
- InstanceKeyNotReadyException.cs
- AttributeData.cs
- PageVisual.cs
- ContentDisposition.cs
- SvcMapFileLoader.cs
- XmlWriterSettings.cs
- AssemblyResolver.cs
- ListViewDeleteEventArgs.cs
- UnsafeNativeMethods.cs
- ToggleButtonAutomationPeer.cs
- HyperLinkStyle.cs
- OpCellTreeNode.cs
- PeerNameRecordCollection.cs
- RegexCharClass.cs
- ApplicationSecurityManager.cs
- SystemColors.cs
- CodeDomConfigurationHandler.cs
- SimpleWebHandlerParser.cs
- GlyphElement.cs
- SoapConverter.cs
- SqlStream.cs
- cookiecollection.cs
- WebControlParameterProxy.cs
- CompoundFileStreamReference.cs
- SecurityManager.cs
- RichTextBoxConstants.cs
- dataSvcMapFileLoader.cs
- FixedBufferAttribute.cs
- UriExt.cs
- DPCustomTypeDescriptor.cs
- EdmRelationshipRoleAttribute.cs