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
- LockRecursionException.cs
- ellipse.cs
- CodeGotoStatement.cs
- ResourceAttributes.cs
- SourceChangedEventArgs.cs
- ClientSettingsSection.cs
- linebase.cs
- PersianCalendar.cs
- Perspective.cs
- DataDesignUtil.cs
- ConfigPathUtility.cs
- CustomAttribute.cs
- SerialErrors.cs
- DataServices.cs
- AnimationStorage.cs
- WebPartManagerInternals.cs
- DataContractSerializer.cs
- ErrorHandler.cs
- Region.cs
- BasicExpandProvider.cs
- followingquery.cs
- EntityDataSourceWrapperCollection.cs
- ToolStripItemEventArgs.cs
- PrimitiveCodeDomSerializer.cs
- BufferedStream.cs
- PrintPreviewGraphics.cs
- BufferedStream.cs
- CommonServiceBehaviorElement.cs
- ObjectPersistData.cs
- StringSorter.cs
- TailPinnedEventArgs.cs
- SvcMapFileSerializer.cs
- RegexGroupCollection.cs
- DataGridViewAutoSizeModeEventArgs.cs
- XPathDocument.cs
- TextDecorationCollection.cs
- XmlSchemaAttributeGroup.cs
- Hashtable.cs
- MetadataException.cs
- Expression.DebuggerProxy.cs
- QilTernary.cs
- Geometry.cs
- Buffer.cs
- SHA1CryptoServiceProvider.cs
- IntellisenseTextBox.designer.cs
- QuaternionRotation3D.cs
- DateTimePicker.cs
- SqlProviderServices.cs
- BridgeDataRecord.cs
- BooleanStorage.cs
- ComplexBindingPropertiesAttribute.cs
- Page.cs
- CustomError.cs
- SQLBinaryStorage.cs
- DeferredReference.cs
- XmlException.cs
- WebServiceHandler.cs
- SqlDataSource.cs
- InkCanvasInnerCanvas.cs
- AssemblyHash.cs
- Attachment.cs
- LoadedOrUnloadedOperation.cs
- GC.cs
- DataGridHeaderBorder.cs
- ReflectPropertyDescriptor.cs
- DecoratedNameAttribute.cs
- TypePresenter.xaml.cs
- DataGridViewImageColumn.cs
- ArglessEventHandlerProxy.cs
- IdentityModelDictionary.cs
- EncryptedData.cs
- EventRoute.cs
- Vector3D.cs
- ManifestResourceInfo.cs
- HostSecurityManager.cs
- AudioException.cs
- DataRecordInternal.cs
- SqlInfoMessageEvent.cs
- Pts.cs
- XmlDataSource.cs
- XmlKeywords.cs
- SafeNativeMethodsMilCoreApi.cs
- COAUTHIDENTITY.cs
- ToolboxComponentsCreatedEventArgs.cs
- HitTestResult.cs
- SmiEventSink.cs
- complextypematerializer.cs
- XmlMtomReader.cs
- SQLSingle.cs
- StylusPointPropertyInfoDefaults.cs
- CommandManager.cs
- _BaseOverlappedAsyncResult.cs
- Win32SafeHandles.cs
- PropertyValueChangedEvent.cs
- MessageQueuePermissionAttribute.cs
- SmtpLoginAuthenticationModule.cs
- CoTaskMemHandle.cs
- FrameworkElementFactory.cs
- ContextBase.cs
- AnimationLayer.cs