Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / Providers / ProjectionNode.cs / 1305376 / ProjectionNode.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Represents a single node in the tree of projections // for queries with $expand and/or $select. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Providers { #region Namespaces using System; using System.Diagnostics; #endregion ///Class describing a single node on the tree of projections /// and expansions. This is the base class used for any projected property. [DebuggerDisplay("ProjectionNode {PropertyName}")] internal class ProjectionNode { #region Private fields ///The name of the property to project. ///If this node represents the root of the projection tree, this name is an empty string. private readonly string propertyName; ///The ///for the property to be projected. If this node represents an open property or it's the root of the projection tree, /// this field is null. private readonly ResourceProperty property; #endregion #region Constructors ///Creates new instance of /// The name of the property to project. /// Thewhich represents a simple projected property. for the property to project. If an open property /// is to be projected, specify null. internal ProjectionNode(string propertyName, ResourceProperty property) { Debug.Assert(propertyName != null, "propertyName != null"); Debug.Assert(property == null || property.Name == propertyName, "If the property is specified its name must match."); this.propertyName = propertyName; this.property = property; } #endregion #region Public properties /// The name of the property to project. ///If this node represents the root of the projection tree, this name is an empty string. public string PropertyName { get { return this.propertyName; } } ///The ///for the property to be projected. If this node represents an open property or it's the root of the projection tree, /// this property is null. public ResourceProperty Property { get { return this.property; } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Represents a single node in the tree of projections // for queries with $expand and/or $select. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Providers { #region Namespaces using System; using System.Diagnostics; #endregion ///Class describing a single node on the tree of projections /// and expansions. This is the base class used for any projected property. [DebuggerDisplay("ProjectionNode {PropertyName}")] internal class ProjectionNode { #region Private fields ///The name of the property to project. ///If this node represents the root of the projection tree, this name is an empty string. private readonly string propertyName; ///The ///for the property to be projected. If this node represents an open property or it's the root of the projection tree, /// this field is null. private readonly ResourceProperty property; #endregion #region Constructors ///Creates new instance of /// The name of the property to project. /// Thewhich represents a simple projected property. for the property to project. If an open property /// is to be projected, specify null. internal ProjectionNode(string propertyName, ResourceProperty property) { Debug.Assert(propertyName != null, "propertyName != null"); Debug.Assert(property == null || property.Name == propertyName, "If the property is specified its name must match."); this.propertyName = propertyName; this.property = property; } #endregion #region Public properties /// The name of the property to project. ///If this node represents the root of the projection tree, this name is an empty string. public string PropertyName { get { return this.propertyName; } } ///The ///for the property to be projected. If this node represents an open property or it's the root of the projection tree, /// this property is null. public ResourceProperty Property { get { return this.property; } } #endregion } } // 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
- BitmapEffectInput.cs
- StructuredType.cs
- ExceptionTranslationTable.cs
- AssociationTypeEmitter.cs
- PersonalizableTypeEntry.cs
- ReplacementText.cs
- HtmlForm.cs
- XmlSchemaComplexContent.cs
- DirectoryObjectSecurity.cs
- MULTI_QI.cs
- WSSecurityJan2004.cs
- ReachVisualSerializer.cs
- MetadataStore.cs
- Double.cs
- EventSourceCreationData.cs
- HttpRuntimeSection.cs
- ResourceWriter.cs
- BrushMappingModeValidation.cs
- ObjectListGeneralPage.cs
- ClockController.cs
- AnnotationDocumentPaginator.cs
- MissingSatelliteAssemblyException.cs
- EnvelopedPkcs7.cs
- FilterQueryOptionExpression.cs
- CommonObjectSecurity.cs
- DropShadowBitmapEffect.cs
- ComponentResourceKeyConverter.cs
- WorkflowRuntime.cs
- ComEventsInfo.cs
- TextBounds.cs
- ClientRequest.cs
- Thickness.cs
- XmlNavigatorFilter.cs
- FastEncoderStatics.cs
- Scheduler.cs
- DecoderFallback.cs
- SafeReadContext.cs
- ClassValidator.cs
- TransformPattern.cs
- XamlTemplateSerializer.cs
- TransformProviderWrapper.cs
- StringArrayConverter.cs
- ObjectDataSourceView.cs
- FramingDecoders.cs
- AnnotationAuthorChangedEventArgs.cs
- AnchorEditor.cs
- Tile.cs
- ProcessHostServerConfig.cs
- DLinqAssociationProvider.cs
- Parameter.cs
- MessageDescriptionCollection.cs
- OptimizedTemplateContent.cs
- WebPartExportVerb.cs
- Events.cs
- XmlLanguageConverter.cs
- OleDbMetaDataFactory.cs
- ArraySortHelper.cs
- embossbitmapeffect.cs
- SqlUDTStorage.cs
- FixedSOMGroup.cs
- XmlSchemaProviderAttribute.cs
- ApplicationServiceHelper.cs
- StoryFragments.cs
- EncoderReplacementFallback.cs
- EditorZone.cs
- DockProviderWrapper.cs
- Point4D.cs
- XPathSingletonIterator.cs
- MenuItemCollection.cs
- StylusDownEventArgs.cs
- ToolStripTextBox.cs
- TextMetrics.cs
- ContractReference.cs
- CheckableControlBaseAdapter.cs
- CompilerCollection.cs
- HttpApplication.cs
- CodeDOMProvider.cs
- QueueProcessor.cs
- webbrowsersite.cs
- MemberDomainMap.cs
- XmlIgnoreAttribute.cs
- LineSegment.cs
- ConnectionPointCookie.cs
- CachedPathData.cs
- PeerNameRecord.cs
- BrowserCapabilitiesCodeGenerator.cs
- VoiceChangeEventArgs.cs
- SqlGenericUtil.cs
- ListViewPagedDataSource.cs
- EventSourceCreationData.cs
- AuthStoreRoleProvider.cs
- JsonWriter.cs
- EntitySqlException.cs
- WindowsListViewSubItem.cs
- AQNBuilder.cs
- PageClientProxyGenerator.cs
- ValidationEventArgs.cs
- CompilerError.cs
- GridViewColumnHeader.cs
- InplaceBitmapMetadataWriter.cs