Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilBinary.cs / 1 / QilBinary.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Diagnostics; namespace System.Xml.Xsl.Qil { ////// View over a Qil operator having two children. /// ////// Don't construct QIL nodes directly; instead, use the internal class QilBinary : QilNode { private QilNode left, right; //----------------------------------------------- // Constructor //----------------------------------------------- ///QilFactory . ////// Construct a new node /// public QilBinary(QilNodeType nodeType, QilNode left, QilNode right) : base(nodeType) { this.left = left; this.right = right; } //----------------------------------------------- // IListmethods -- override //----------------------------------------------- public override int Count { get { return 2; } } public override QilNode this[int index] { get { switch (index) { case 0: return this.left; case 1: return this.right; default: throw new IndexOutOfRangeException(); } } set { switch (index) { case 0: this.left = value; break; case 1: this.right = value; break; default: throw new IndexOutOfRangeException(); } } } //----------------------------------------------- // QilBinary methods //----------------------------------------------- public QilNode Left { get { return this.left; } set { this.left = value; } } public QilNode Right { get { return this.right; } set { this.right = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Diagnostics; namespace System.Xml.Xsl.Qil { ////// View over a Qil operator having two children. /// ////// Don't construct QIL nodes directly; instead, use the internal class QilBinary : QilNode { private QilNode left, right; //----------------------------------------------- // Constructor //----------------------------------------------- ///QilFactory . ////// Construct a new node /// public QilBinary(QilNodeType nodeType, QilNode left, QilNode right) : base(nodeType) { this.left = left; this.right = right; } //----------------------------------------------- // IListmethods -- override //----------------------------------------------- public override int Count { get { return 2; } } public override QilNode this[int index] { get { switch (index) { case 0: return this.left; case 1: return this.right; default: throw new IndexOutOfRangeException(); } } set { switch (index) { case 0: this.left = value; break; case 1: this.right = value; break; default: throw new IndexOutOfRangeException(); } } } //----------------------------------------------- // QilBinary methods //----------------------------------------------- public QilNode Left { get { return this.left; } set { this.left = value; } } public QilNode Right { get { return this.right; } set { this.right = value; } } } } // 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
- FormViewInsertedEventArgs.cs
- WebBrowser.cs
- DesignerActionListCollection.cs
- ResourceAssociationSet.cs
- Win32KeyboardDevice.cs
- OdbcException.cs
- ParseHttpDate.cs
- DispatcherTimer.cs
- HwndSourceParameters.cs
- SqlIdentifier.cs
- DataListItemCollection.cs
- IndexOutOfRangeException.cs
- DataBoundControlAdapter.cs
- PlanCompilerUtil.cs
- RoutingUtilities.cs
- WebPartRestoreVerb.cs
- AdornerLayer.cs
- BuilderInfo.cs
- GenericWebPart.cs
- BaseParser.cs
- ObjectQueryExecutionPlan.cs
- GridViewHeaderRowPresenter.cs
- NetPipeSection.cs
- ReflectionUtil.cs
- ToolStripSeparator.cs
- PathNode.cs
- odbcmetadatafactory.cs
- FixedDocumentSequencePaginator.cs
- HtmlImageAdapter.cs
- FactoryGenerator.cs
- Visitor.cs
- IDReferencePropertyAttribute.cs
- DesignerImageAdapter.cs
- DataRelationCollection.cs
- XmlSchemaAttributeGroupRef.cs
- OleDbWrapper.cs
- WebSysDisplayNameAttribute.cs
- HostedImpersonationContext.cs
- MatrixUtil.cs
- PeerToPeerException.cs
- OutputCacheSettings.cs
- ExpressionVisitor.cs
- CopyAttributesAction.cs
- WizardSideBarListControlItemEventArgs.cs
- DbConnectionHelper.cs
- PerformanceCounterManager.cs
- DropDownButton.cs
- GatewayDefinition.cs
- AddInEnvironment.cs
- Themes.cs
- DocumentPaginator.cs
- NegotiationTokenProvider.cs
- WmpBitmapDecoder.cs
- ColumnResizeUndoUnit.cs
- XPathNodePointer.cs
- DependencyPropertyConverter.cs
- Size3D.cs
- WindowVisualStateTracker.cs
- SrgsOneOf.cs
- UiaCoreProviderApi.cs
- SizeFConverter.cs
- LineGeometry.cs
- StrongNameKeyPair.cs
- TextSpan.cs
- DataGridColumnEventArgs.cs
- GridViewEditEventArgs.cs
- COAUTHINFO.cs
- ImageUrlEditor.cs
- MultiDataTrigger.cs
- MetadataHelper.cs
- ActionFrame.cs
- UIElement.cs
- ConfigXmlWhitespace.cs
- SqlIdentifier.cs
- TextDpi.cs
- DataViewSetting.cs
- EdmItemError.cs
- TimeSpan.cs
- ValueHandle.cs
- COM2EnumConverter.cs
- QueryHandler.cs
- DrawTreeNodeEventArgs.cs
- ReceiveCompletedEventArgs.cs
- PersianCalendar.cs
- RuntimeConfigurationRecord.cs
- WindowsImpersonationContext.cs
- ToolbarAUtomationPeer.cs
- HtmlShimManager.cs
- ViewBox.cs
- MemberInfoSerializationHolder.cs
- StylusPointDescription.cs
- WebPartConnectionsEventArgs.cs
- EntityCollection.cs
- DoubleLinkList.cs
- CanonicalXml.cs
- PrintPreviewControl.cs
- ListChunk.cs
- IntegerValidator.cs
- formatstringdialog.cs
- SQLBytesStorage.cs