Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilBinary.cs / 1305376 / 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
- BitmapSourceSafeMILHandle.cs
- CornerRadius.cs
- XmlAutoDetectWriter.cs
- Screen.cs
- CompilationUtil.cs
- XmlDataSource.cs
- StreamReader.cs
- SyncMethodInvoker.cs
- Win32SafeHandles.cs
- EFAssociationProvider.cs
- GeneralTransform.cs
- StreamInfo.cs
- PrimitiveXmlSerializers.cs
- HttpDebugHandler.cs
- XmlIterators.cs
- MouseEventArgs.cs
- Binding.cs
- TreeBuilderXamlTranslator.cs
- M3DUtil.cs
- JsonEnumDataContract.cs
- TextBoxAutomationPeer.cs
- DataGridViewRowPostPaintEventArgs.cs
- InfocardClientCredentials.cs
- StringOutput.cs
- SoapTypeAttribute.cs
- Label.cs
- AppDomainInfo.cs
- DataService.cs
- ListViewInsertionMark.cs
- EncoderFallback.cs
- SiteMapPathDesigner.cs
- TypeForwardedToAttribute.cs
- URLString.cs
- ExclusiveTcpListener.cs
- InvalidCastException.cs
- PackagePartCollection.cs
- Ipv6Element.cs
- bidPrivateBase.cs
- ToolStripDropDownClosingEventArgs.cs
- AxParameterData.cs
- XmlSchemaSimpleTypeRestriction.cs
- ExpressionContext.cs
- ManipulationInertiaStartingEventArgs.cs
- ComboBoxAutomationPeer.cs
- StringBuilder.cs
- WebPartConnectionsCloseVerb.cs
- XmlAttributeCache.cs
- AnimationLayer.cs
- HttpListenerException.cs
- ExpandCollapsePattern.cs
- FontEmbeddingManager.cs
- AppSecurityManager.cs
- DataGrid.cs
- ListViewInsertEventArgs.cs
- DescendantOverDescendantQuery.cs
- Options.cs
- BamlTreeUpdater.cs
- ImageMapEventArgs.cs
- CallTemplateAction.cs
- JournalEntryStack.cs
- ErrorRuntimeConfig.cs
- clipboard.cs
- _Semaphore.cs
- Material.cs
- DataGridViewLayoutData.cs
- ComEventsSink.cs
- DataColumnChangeEvent.cs
- AnnotationComponentManager.cs
- NumberFunctions.cs
- DefaultDiscoveryService.cs
- base64Transforms.cs
- ZipIOLocalFileBlock.cs
- FixedSOMTableCell.cs
- DeviceSpecificDesigner.cs
- TableCellAutomationPeer.cs
- ListViewContainer.cs
- PartitionedStream.cs
- DataGridItem.cs
- DesignerAutoFormat.cs
- SortQuery.cs
- DbConnectionPoolOptions.cs
- BitmapEffectInputData.cs
- safex509handles.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- VisualTreeHelper.cs
- Identifier.cs
- FixUpCollection.cs
- ExpressionServices.cs
- EditorPart.cs
- DataSpaceManager.cs
- VariableQuery.cs
- MetadataItem_Static.cs
- DataContext.cs
- TemplatePagerField.cs
- TogglePattern.cs
- WebFaultClientMessageInspector.cs
- KeyTimeConverter.cs
- Buffer.cs
- CodeVariableReferenceExpression.cs
- PropertyPushdownHelper.cs