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
- SecurityDescriptor.cs
- TargetPerspective.cs
- MemberJoinTreeNode.cs
- DataGridViewCellValueEventArgs.cs
- CookieProtection.cs
- cookiecollection.cs
- CancellationTokenRegistration.cs
- HostedHttpRequestAsyncResult.cs
- CharEnumerator.cs
- TableLayoutPanelCodeDomSerializer.cs
- IncrementalHitTester.cs
- UnsafeNativeMethods.cs
- PenCursorManager.cs
- SoapIncludeAttribute.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- TextCharacters.cs
- InvalidCommandTreeException.cs
- RegexWorker.cs
- BamlLocalizabilityResolver.cs
- TextRenderer.cs
- RsaEndpointIdentity.cs
- HGlobalSafeHandle.cs
- ColumnWidthChangedEvent.cs
- XhtmlBasicTextBoxAdapter.cs
- WindowShowOrOpenTracker.cs
- DocumentSequence.cs
- OdbcCommand.cs
- QilPatternVisitor.cs
- SqlCacheDependencySection.cs
- GenerateScriptTypeAttribute.cs
- WebPartMenuStyle.cs
- GeometryValueSerializer.cs
- MeasurementDCInfo.cs
- DbConnectionStringCommon.cs
- GridItem.cs
- SupportsPreviewControlAttribute.cs
- Base64Decoder.cs
- X509RawDataKeyIdentifierClause.cs
- ListParagraph.cs
- ELinqQueryState.cs
- DrawTreeNodeEventArgs.cs
- PluralizationServiceUtil.cs
- ClientData.cs
- XMLSchema.cs
- DataGridDesigner.cs
- TypeDefinition.cs
- StateDesignerConnector.cs
- WriteableBitmap.cs
- LineGeometry.cs
- CustomWebEventKey.cs
- UTF8Encoding.cs
- ExpressionBinding.cs
- HttpListenerRequest.cs
- DefaultTextStore.cs
- Trace.cs
- CustomAttributeSerializer.cs
- RootBrowserWindow.cs
- IPPacketInformation.cs
- SpeechSeg.cs
- Item.cs
- DataGridItem.cs
- TextView.cs
- XmlExpressionDumper.cs
- FloaterParagraph.cs
- OrderPreservingMergeHelper.cs
- ActivationServices.cs
- WebBrowser.cs
- SessionEndingEventArgs.cs
- XmlSchemaExporter.cs
- IssuedSecurityTokenParameters.cs
- CommonObjectSecurity.cs
- PromptBuilder.cs
- PropertyGridCommands.cs
- JsonFormatReaderGenerator.cs
- DataExpression.cs
- CreateUserWizardStep.cs
- RawTextInputReport.cs
- _AuthenticationState.cs
- AliasGenerator.cs
- WebPartCancelEventArgs.cs
- RightsManagementProvider.cs
- RotateTransform3D.cs
- StateMachineSubscriptionManager.cs
- AudioSignalProblemOccurredEventArgs.cs
- UnmanagedMemoryStreamWrapper.cs
- DataFieldCollectionEditor.cs
- SupportsEventValidationAttribute.cs
- BoundColumn.cs
- TriggerCollection.cs
- BackgroundWorker.cs
- InstanceDataCollection.cs
- Addressing.cs
- DbCommandDefinition.cs
- SqlTypeConverter.cs
- DrawingDrawingContext.cs
- UrlMappingCollection.cs
- XmlObjectSerializerReadContextComplex.cs
- XamlSerializerUtil.cs
- UserControl.cs
- SlotInfo.cs