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
- SqlCaseSimplifier.cs
- CodePrimitiveExpression.cs
- ToolStripSettings.cs
- TrackingDataItem.cs
- PassportAuthentication.cs
- CustomAttribute.cs
- QilInvokeEarlyBound.cs
- PrivateFontCollection.cs
- EntityDataSourceChangedEventArgs.cs
- DESCryptoServiceProvider.cs
- PageTheme.cs
- IpcServerChannel.cs
- DataBindingExpressionBuilder.cs
- ComboBoxItem.cs
- AuthorizationSection.cs
- WaitHandle.cs
- NetworkStream.cs
- AsymmetricAlgorithm.cs
- HttpConfigurationSystem.cs
- TabPanel.cs
- TdsParserHelperClasses.cs
- _IPv4Address.cs
- XPathBinder.cs
- ListViewDeleteEventArgs.cs
- MruCache.cs
- DataGridViewElement.cs
- PlanCompiler.cs
- DelayedRegex.cs
- AnnotationService.cs
- NamedServiceModelExtensionCollectionElement.cs
- EdgeModeValidation.cs
- clipboard.cs
- AnnotationComponentChooser.cs
- LocalBuilder.cs
- BitmapSizeOptions.cs
- PeerCollaborationPermission.cs
- RelatedImageListAttribute.cs
- OperationAbortedException.cs
- WindowsAuthenticationModule.cs
- BitmapImage.cs
- SelectionChangedEventArgs.cs
- Error.cs
- Misc.cs
- TextParentUndoUnit.cs
- ProvidersHelper.cs
- HtmlTableRow.cs
- TemplateEditingVerb.cs
- DesignTimeTemplateParser.cs
- Point3DCollection.cs
- TextDpi.cs
- IdentityNotMappedException.cs
- XsltLibrary.cs
- ItemsPanelTemplate.cs
- Deserializer.cs
- EncodingTable.cs
- ReflectionPermission.cs
- ColorInterpolationModeValidation.cs
- MutableAssemblyCacheEntry.cs
- MtomMessageEncodingBindingElement.cs
- BinaryUtilClasses.cs
- TrackingExtract.cs
- _LocalDataStoreMgr.cs
- WorkflowServiceAttributesTypeConverter.cs
- Listbox.cs
- HttpCacheVary.cs
- KeysConverter.cs
- MetadataArtifactLoaderComposite.cs
- BitmapEffect.cs
- BamlRecords.cs
- UpDownBase.cs
- RowSpanVector.cs
- HyperLinkStyle.cs
- CheckPair.cs
- XmlILAnnotation.cs
- FloaterParaClient.cs
- CodeObjectCreateExpression.cs
- Pens.cs
- Rect.cs
- PanelStyle.cs
- BufferBuilder.cs
- ProtocolsConfigurationEntry.cs
- SkewTransform.cs
- WeakReferenceEnumerator.cs
- ObservableDictionary.cs
- LinqDataSourceDeleteEventArgs.cs
- Aes.cs
- QilInvoke.cs
- SmiMetaDataProperty.cs
- TextTreeTextNode.cs
- DataSetFieldSchema.cs
- FixedSOMContainer.cs
- OptionUsage.cs
- UnauthorizedAccessException.cs
- CommittableTransaction.cs
- NetworkInformationPermission.cs
- StringUtil.cs
- ToolStripSplitButton.cs
- Deflater.cs
- TransformerInfoCollection.cs
- OperationDescriptionCollection.cs