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
- RepeaterItemEventArgs.cs
- RadialGradientBrush.cs
- JapaneseCalendar.cs
- EntityDataSourceContextDisposingEventArgs.cs
- CodeAttachEventStatement.cs
- control.ime.cs
- FileLevelControlBuilderAttribute.cs
- ElementsClipboardData.cs
- SpeechEvent.cs
- RequestCacheValidator.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- ErrorWebPart.cs
- TransformCryptoHandle.cs
- ReaderOutput.cs
- X509ChainPolicy.cs
- SvcMapFileSerializer.cs
- Zone.cs
- DllHostInitializer.cs
- _SecureChannel.cs
- arabicshape.cs
- ListViewContainer.cs
- TableProvider.cs
- NameValueConfigurationCollection.cs
- SystemException.cs
- ObjectCloneHelper.cs
- ResXResourceWriter.cs
- StylusEventArgs.cs
- Rule.cs
- TextChangedEventArgs.cs
- panel.cs
- XappLauncher.cs
- XmlNotation.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ValidationRule.cs
- InternalsVisibleToAttribute.cs
- UInt16Storage.cs
- BooleanProjectedSlot.cs
- ActivityMarkupSerializer.cs
- DocumentPage.cs
- _ConnectStream.cs
- SystemBrushes.cs
- documentsequencetextpointer.cs
- FilteredAttributeCollection.cs
- TextSpan.cs
- ObjectConverter.cs
- UnionCodeGroup.cs
- ColumnMapVisitor.cs
- StyleBamlTreeBuilder.cs
- RoutedEventConverter.cs
- ConfigurationStrings.cs
- QilTargetType.cs
- CodeDOMUtility.cs
- ConfigurationManager.cs
- CompareValidator.cs
- HtmlValidatorAdapter.cs
- wgx_exports.cs
- GroupBoxAutomationPeer.cs
- CursorEditor.cs
- ControlFilterExpression.cs
- TreeNodeCollection.cs
- SchemaNamespaceManager.cs
- ListViewTableRow.cs
- MimeWriter.cs
- ConnectAlgorithms.cs
- QuaternionConverter.cs
- DataGridToolTip.cs
- XmlElementAttributes.cs
- DateTimeAutomationPeer.cs
- SHA1.cs
- WindowsToolbarAsMenu.cs
- UTF32Encoding.cs
- PackagePart.cs
- DirectoryObjectSecurity.cs
- DateTimeConverter2.cs
- ForceCopyBuildProvider.cs
- ResourceCategoryAttribute.cs
- DeferredReference.cs
- RadioButtonFlatAdapter.cs
- HostingEnvironmentException.cs
- DbUpdateCommandTree.cs
- ApplicationServiceManager.cs
- OrderingExpression.cs
- XmlSchema.cs
- ChangeTracker.cs
- EngineSite.cs
- PageStatePersister.cs
- BaseParser.cs
- SizeFConverter.cs
- SHA1Managed.cs
- DateTimeValueSerializerContext.cs
- TextAdaptor.cs
- ITreeGenerator.cs
- QuaternionRotation3D.cs
- OracleCommandSet.cs
- EntityObject.cs
- Point3DCollection.cs
- RangeEnumerable.cs
- SoapAttributes.cs
- LassoHelper.cs
- SchemaNotation.cs