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
- RawStylusSystemGestureInputReport.cs
- MetafileHeaderWmf.cs
- EtwTrace.cs
- FrameworkElementFactory.cs
- SessionState.cs
- EmptyReadOnlyDictionaryInternal.cs
- XmlKeywords.cs
- WebZone.cs
- DataStreamFromComStream.cs
- ConnectionConsumerAttribute.cs
- TableLayoutSettings.cs
- CodeSubDirectory.cs
- MarshalDirectiveException.cs
- DataGridViewCellEventArgs.cs
- EdmPropertyAttribute.cs
- MatrixAnimationBase.cs
- Stopwatch.cs
- CellLabel.cs
- StringBuilder.cs
- BlurEffect.cs
- XmlAnyElementAttribute.cs
- RuleRefElement.cs
- CompilerScope.Storage.cs
- CompilerScope.cs
- Color.cs
- IOException.cs
- SQLCharsStorage.cs
- TableAutomationPeer.cs
- XamlFilter.cs
- LineSegment.cs
- SecureEnvironment.cs
- JavaScriptSerializer.cs
- SmtpNetworkElement.cs
- QilReplaceVisitor.cs
- Update.cs
- ImageDrawing.cs
- ClientBuildManager.cs
- BaseCAMarshaler.cs
- Visual3D.cs
- ToolStripItemTextRenderEventArgs.cs
- TypedTableBase.cs
- HandleCollector.cs
- Point3DCollection.cs
- FatalException.cs
- InstanceNotReadyException.cs
- RecordManager.cs
- SerializationInfo.cs
- FontCacheLogic.cs
- DBSqlParserColumn.cs
- WorkflowTraceTransfer.cs
- DbResourceAllocator.cs
- UriScheme.cs
- SecureEnvironment.cs
- DataBoundLiteralControl.cs
- BackgroundFormatInfo.cs
- _ServiceNameStore.cs
- XmlReflectionMember.cs
- PrintDocument.cs
- WebPartTransformer.cs
- CodeVariableReferenceExpression.cs
- ListBindableAttribute.cs
- MembershipSection.cs
- Funcletizer.cs
- SqlConnectionHelper.cs
- Pen.cs
- XsdCachingReader.cs
- ColorContextHelper.cs
- TargetParameterCountException.cs
- ScriptBehaviorDescriptor.cs
- CodeAccessPermission.cs
- BamlTreeMap.cs
- FormViewDesigner.cs
- Bitmap.cs
- HMACSHA256.cs
- Int32KeyFrameCollection.cs
- KeySplineConverter.cs
- PrintController.cs
- X509SecurityTokenProvider.cs
- KerberosTicketHashIdentifierClause.cs
- XMLSyntaxException.cs
- View.cs
- ErrorProvider.cs
- SqlRowUpdatedEvent.cs
- EventDescriptor.cs
- XmlIncludeAttribute.cs
- CacheRequest.cs
- IgnoreSectionHandler.cs
- WindowInteractionStateTracker.cs
- ComponentGuaranteesAttribute.cs
- TextLineBreak.cs
- URLMembershipCondition.cs
- BufferedWebEventProvider.cs
- HwndHost.cs
- PrimaryKeyTypeConverter.cs
- TextTreeTextElementNode.cs
- ResXBuildProvider.cs
- AdapterDictionary.cs
- ManagedIStream.cs
- PersistenceTypeAttribute.cs
- DataBindingCollectionEditor.cs