Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SEHException.cs
- ToolStripDropDownButton.cs
- StorageTypeMapping.cs
- EnumerableCollectionView.cs
- CodeParameterDeclarationExpression.cs
- AvTrace.cs
- IPHostEntry.cs
- PeerContact.cs
- FrameworkElement.cs
- DictationGrammar.cs
- File.cs
- SystemSounds.cs
- EdmValidator.cs
- DataGridViewRowPostPaintEventArgs.cs
- ConsoleCancelEventArgs.cs
- DefaultTextStoreTextComposition.cs
- TimeoutException.cs
- StrokeFIndices.cs
- PrintDialog.cs
- ToolStripDropDown.cs
- Clipboard.cs
- QueryOperationResponseOfT.cs
- fixedPageContentExtractor.cs
- DataListItemEventArgs.cs
- Int32EqualityComparer.cs
- Pointer.cs
- ReadOnlyDataSourceView.cs
- ActivationService.cs
- NavigationProgressEventArgs.cs
- MimePart.cs
- PublishLicense.cs
- EventSinkHelperWriter.cs
- ContourSegment.cs
- TreeBuilder.cs
- IndexExpression.cs
- SoapIncludeAttribute.cs
- _emptywebproxy.cs
- XmlDownloadManager.cs
- JournalNavigationScope.cs
- HttpListenerPrefixCollection.cs
- MessageBox.cs
- XmlBindingWorker.cs
- OracleParameterCollection.cs
- MergeFilterQuery.cs
- EditorZoneBase.cs
- WindowInteropHelper.cs
- PageBreakRecord.cs
- sqlinternaltransaction.cs
- XmlCodeExporter.cs
- AdjustableArrowCap.cs
- ReadContentAsBinaryHelper.cs
- TextDecorationCollectionConverter.cs
- TemplateDefinition.cs
- EventProxy.cs
- OleDbCommand.cs
- XmlWhitespace.cs
- ClientConfigPaths.cs
- ExpandSegment.cs
- ViewgenContext.cs
- NativeMethods.cs
- Encoder.cs
- AsynchronousChannel.cs
- OpCopier.cs
- DocumentCollection.cs
- XmlElementAttributes.cs
- HttpPostClientProtocol.cs
- ReadOnlyAttribute.cs
- WebControlsSection.cs
- SqlTriggerAttribute.cs
- DesignerRegionCollection.cs
- TemplateControlCodeDomTreeGenerator.cs
- ServiceNameCollection.cs
- TransformGroup.cs
- ProviderSettings.cs
- DataReaderContainer.cs
- ObjectContextServiceProvider.cs
- DiscreteKeyFrames.cs
- PackWebRequestFactory.cs
- ApplicationDirectoryMembershipCondition.cs
- WhereQueryOperator.cs
- X509CertificateTrustedIssuerElementCollection.cs
- XmlDictionaryWriter.cs
- DeferredElementTreeState.cs
- PageSetupDialog.cs
- ParseChildrenAsPropertiesAttribute.cs
- LinkDesigner.cs
- HorizontalAlignConverter.cs
- ValueTable.cs
- DataGridViewBindingCompleteEventArgs.cs
- HotSpotCollection.cs
- TextDecorationCollection.cs
- ExpressionVisitor.cs
- PreservationFileWriter.cs
- XmlNamespaceDeclarationsAttribute.cs
- BasicHttpBindingElement.cs
- Int32Rect.cs
- ListItemConverter.cs
- AsyncContentLoadedEventArgs.cs
- LinkButton.cs
- TemplateBuilder.cs