Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / ProjectionPathSegment.cs / 1305376 / ProjectionPathSegment.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Provides a class that represents a single step in a path of segments // over a parsed tree used during projection-driven materialization. // //--------------------------------------------------------------------- namespace System.Data.Services.Client { #region Namespaces. using System; using System.Diagnostics; using System.Linq.Expressions; #endregion Namespaces. ////// Use this class to represent a step in a path of segments /// over a parsed tree used during projection-driven materialization. /// [DebuggerDisplay("Segment {ProjectionType} {Member}")] internal class ProjectionPathSegment { #region Constructors. ///Initializes a new /// Path on which this segment is located. /// Name of member to access when traversing a property; possibly null. /// /// Type that we expect to project out; typically the same asinstance. , but may be adjusted. /// internal ProjectionPathSegment(ProjectionPath startPath, string member, Type projectionType) { Debug.Assert(startPath != null, "startPath != null"); this.Member = member; this.StartPath = startPath; this.ProjectionType = projectionType; } #endregion Constructors. #region Internal properties. /// Name of member to access when traversing a property; possibly null. internal string Member { get; private set; } ////// Type that we expect to project out; typically the same as ///, but may be adjusted. /// /// In particular, this type will be adjusted for nested narrowing entity types. /// /// For example: /// from c in ctx.Customers select new NarrowCustomer() { /// ID = c.ID, /// BestFriend = new NarrowCustomer() { ID = c.BestFriend.ID } /// } /// /// In this case, ID will match types on both sides, but BestFriend /// will be of type Customer in the member access of the source tree /// and we want to project out a member-initialized NarrowCustomer /// in the target tree. /// internal Type ProjectionType { get; set; } ///Path on which this segment is located. internal ProjectionPath StartPath { get; private set; } #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
- ExpandedWrapper.cs
- BrowserCapabilitiesFactory.cs
- BamlLocalizationDictionary.cs
- SignatureToken.cs
- SafeMemoryMappedFileHandle.cs
- PageThemeCodeDomTreeGenerator.cs
- SafeProcessHandle.cs
- ThousandthOfEmRealDoubles.cs
- TokenBasedSet.cs
- SiteMap.cs
- ToolboxBitmapAttribute.cs
- PrinterResolution.cs
- SrgsGrammar.cs
- WebPartTracker.cs
- HandlerWithFactory.cs
- XmlHelper.cs
- SQLCharsStorage.cs
- ContextQuery.cs
- OpenFileDialog.cs
- DataSpaceManager.cs
- ChtmlCommandAdapter.cs
- followingsibling.cs
- SchemaImporter.cs
- ListViewAutomationPeer.cs
- WebExceptionStatus.cs
- ThreadInterruptedException.cs
- DesignerDataStoredProcedure.cs
- SupportingTokenSecurityTokenResolver.cs
- InputLanguageEventArgs.cs
- ProgressChangedEventArgs.cs
- securitymgrsite.cs
- InstalledFontCollection.cs
- FormatConvertedBitmap.cs
- Binding.cs
- DesignerLoader.cs
- DataGridSortCommandEventArgs.cs
- TTSEvent.cs
- CodeArrayIndexerExpression.cs
- OrthographicCamera.cs
- TreeViewImageKeyConverter.cs
- TypeExtensionSerializer.cs
- DmlSqlGenerator.cs
- BindingNavigator.cs
- DesignerSerializationOptionsAttribute.cs
- Style.cs
- mediaeventshelper.cs
- Itemizer.cs
- OpenTypeLayoutCache.cs
- HelpKeywordAttribute.cs
- Codec.cs
- PartialCachingControl.cs
- XPathNodePointer.cs
- CharacterString.cs
- QueryStringParameter.cs
- ContentDisposition.cs
- Effect.cs
- ToolStripItem.cs
- TypefaceMetricsCache.cs
- Group.cs
- ComplexPropertyEntry.cs
- GenerateHelper.cs
- EventRouteFactory.cs
- Matrix3D.cs
- ObjectCacheHost.cs
- DataPagerCommandEventArgs.cs
- NullNotAllowedCollection.cs
- ConnectionStringsExpressionBuilder.cs
- CheckedListBox.cs
- DataServiceClientException.cs
- GatewayIPAddressInformationCollection.cs
- EntityRecordInfo.cs
- LogRecordSequence.cs
- TextServicesManager.cs
- ParagraphVisual.cs
- CacheRequest.cs
- Cursors.cs
- figurelength.cs
- Sequence.cs
- GC.cs
- BoundField.cs
- AlphaSortedEnumConverter.cs
- SkipQueryOptionExpression.cs
- AuthStoreRoleProvider.cs
- AppLevelCompilationSectionCache.cs
- ReadOnlyObservableCollection.cs
- Error.cs
- WebPartConnectionsDisconnectVerb.cs
- OleDbMetaDataFactory.cs
- DocumentReferenceCollection.cs
- Manipulation.cs
- ProxyAttribute.cs
- TripleDES.cs
- LocalFileSettingsProvider.cs
- FormsAuthentication.cs
- DataGridSortCommandEventArgs.cs
- CancellationTokenRegistration.cs
- DoubleLink.cs
- DetailsViewDeletedEventArgs.cs
- MatrixUtil.cs
- LabelLiteral.cs