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
- WebPartDeleteVerb.cs
- RadialGradientBrush.cs
- XmlParserContext.cs
- DesignOnlyAttribute.cs
- BypassElement.cs
- DetailsViewDeleteEventArgs.cs
- ScriptReferenceBase.cs
- CancelEventArgs.cs
- SettingsPropertyWrongTypeException.cs
- RightsManagementEncryptionTransform.cs
- DataObject.cs
- HtmlInputRadioButton.cs
- DataGridColumn.cs
- WebPartConnectionsCloseVerb.cs
- EntityStoreSchemaFilterEntry.cs
- KnownTypes.cs
- DbConnectionStringCommon.cs
- XmlSchemaComplexContent.cs
- ModelPropertyDescriptor.cs
- Utils.cs
- ProxyHwnd.cs
- TraceData.cs
- processwaithandle.cs
- IdnElement.cs
- SizeAnimation.cs
- TabPage.cs
- EmptyQuery.cs
- RequestReplyCorrelator.cs
- DataControlPagerLinkButton.cs
- PingReply.cs
- X500Name.cs
- BoolExpr.cs
- UpdatePanelTrigger.cs
- Compiler.cs
- AutomationIdentifierGuids.cs
- ContainerSelectorActiveEvent.cs
- HttpCapabilitiesEvaluator.cs
- DocumentReferenceCollection.cs
- Debug.cs
- BufferManager.cs
- _StreamFramer.cs
- GPPOINTF.cs
- KeyValuePairs.cs
- Ref.cs
- NameValuePair.cs
- SyndicationSerializer.cs
- MediaScriptCommandRoutedEventArgs.cs
- EditorPartCollection.cs
- PowerModeChangedEventArgs.cs
- TcpClientChannel.cs
- SecurityKeyEntropyMode.cs
- TimeoutHelper.cs
- OutputScopeManager.cs
- GregorianCalendar.cs
- InteropExecutor.cs
- SmtpReplyReader.cs
- ManualResetEvent.cs
- EntityContainerRelationshipSet.cs
- SecureUICommand.cs
- WindowsListViewSubItem.cs
- DynamicILGenerator.cs
- PropertiesTab.cs
- TypeBinaryExpression.cs
- UserNameSecurityToken.cs
- MatrixAnimationUsingKeyFrames.cs
- DataChangedEventManager.cs
- __ConsoleStream.cs
- HttpPostProtocolImporter.cs
- SiteMapNodeItemEventArgs.cs
- MachineKeyConverter.cs
- DependencyProperty.cs
- ProviderConnectionPointCollection.cs
- Metafile.cs
- SeekableMessageNavigator.cs
- TextTreeInsertUndoUnit.cs
- WizardPanel.cs
- MessageBox.cs
- Attributes.cs
- Module.cs
- TypeSource.cs
- ServerIdentity.cs
- SoapElementAttribute.cs
- TemplatedMailWebEventProvider.cs
- SystemResourceKey.cs
- TextReader.cs
- DPAPIProtectedConfigurationProvider.cs
- PieceDirectory.cs
- BooleanSwitch.cs
- StatusBar.cs
- LinqDataSourceInsertEventArgs.cs
- Geometry.cs
- Stackframe.cs
- Point.cs
- xml.cs
- StrokeDescriptor.cs
- Socket.cs
- NativeMethods.cs
- ClickablePoint.cs
- ProcessProtocolHandler.cs
- DataRow.cs