Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ScrollProviderWrapper.cs
- RoleService.cs
- QilName.cs
- Button.cs
- NullableConverter.cs
- StringOutput.cs
- UnionQueryOperator.cs
- FtpRequestCacheValidator.cs
- FillErrorEventArgs.cs
- SingleStorage.cs
- PlainXmlWriter.cs
- WebPartEditVerb.cs
- bidPrivateBase.cs
- FilterEventArgs.cs
- ToolStripPanelDesigner.cs
- ExpressionQuoter.cs
- MD5CryptoServiceProvider.cs
- PagedDataSource.cs
- Win32Interop.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- UseAttributeSetsAction.cs
- Mapping.cs
- ExpressionTextBoxAutomationPeer.cs
- XmlQueryRuntime.cs
- ConfigurationSchemaErrors.cs
- SqlCacheDependency.cs
- OdbcConnectionStringbuilder.cs
- RoutedEventConverter.cs
- DBConcurrencyException.cs
- FindCompletedEventArgs.cs
- RawTextInputReport.cs
- MatrixAnimationUsingPath.cs
- SliderAutomationPeer.cs
- SqlFileStream.cs
- IndexerNameAttribute.cs
- PictureBoxDesigner.cs
- ImageFormatConverter.cs
- DesigntimeLicenseContext.cs
- oledbconnectionstring.cs
- SHA1Managed.cs
- StickyNoteHelper.cs
- JsonReaderWriterFactory.cs
- HttpApplication.cs
- SlotInfo.cs
- InfoCardBaseException.cs
- QueryStringParameter.cs
- TextServicesDisplayAttributePropertyRanges.cs
- AdRotator.cs
- PixelShader.cs
- StateChangeEvent.cs
- ImageButton.cs
- SQLSingleStorage.cs
- CounterCreationData.cs
- HandlerFactoryCache.cs
- EditorPart.cs
- LinqDataSourceView.cs
- Mutex.cs
- HwndSourceKeyboardInputSite.cs
- CodeDirectiveCollection.cs
- IntegrationExceptionEventArgs.cs
- PartialCachingAttribute.cs
- MediaEntryAttribute.cs
- RequestContext.cs
- ConnectionConsumerAttribute.cs
- UndoEngine.cs
- TrustManagerPromptUI.cs
- LayoutEvent.cs
- ValidatorCollection.cs
- CategoryAttribute.cs
- ContentTypeSettingClientMessageFormatter.cs
- DefinitionProperties.cs
- ControllableStoryboardAction.cs
- SafeRightsManagementHandle.cs
- MatchingStyle.cs
- Transform.cs
- ProcessingInstructionAction.cs
- MexBindingElement.cs
- DoubleAnimationUsingPath.cs
- DocumentViewerHelper.cs
- DataViewSettingCollection.cs
- ExpandableObjectConverter.cs
- OdbcEnvironment.cs
- ChineseLunisolarCalendar.cs
- XslException.cs
- Span.cs
- ProgressiveCrcCalculatingStream.cs
- DataControlPagerLinkButton.cs
- XD.cs
- ByteStorage.cs
- CompModHelpers.cs
- ParseNumbers.cs
- RegexFCD.cs
- DataGridState.cs
- ObjectIDGenerator.cs
- XPathException.cs
- Camera.cs
- AuthenticationSection.cs
- SessionStateContainer.cs
- ObjectAssociationEndMapping.cs
- ConstantProjectedSlot.cs