Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DocumentManager.cs
- BinaryUtilClasses.cs
- Rotation3DAnimation.cs
- BlockingCollection.cs
- If.cs
- HandlerFactoryCache.cs
- WebPartConnectionsConfigureVerb.cs
- Win32Native.cs
- DoubleLinkListEnumerator.cs
- Mouse.cs
- counter.cs
- DataKey.cs
- NumericUpDown.cs
- EraserBehavior.cs
- SQLByte.cs
- DecoderBestFitFallback.cs
- TokenBasedSetEnumerator.cs
- ProfileBuildProvider.cs
- ToolStripRenderer.cs
- FunctionOverloadResolver.cs
- SafeHandle.cs
- ZipIOExtraField.cs
- DirectionalLight.cs
- PropertyToken.cs
- InvokeProviderWrapper.cs
- UIPropertyMetadata.cs
- DbProviderConfigurationHandler.cs
- ServiceOperationParameter.cs
- StreamResourceInfo.cs
- FontSourceCollection.cs
- TimeIntervalCollection.cs
- InkCanvas.cs
- StreamedFramingRequestChannel.cs
- Dynamic.cs
- XmlDataLoader.cs
- ToolStripItemBehavior.cs
- LassoHelper.cs
- RevocationPoint.cs
- Hashtable.cs
- TabItemWrapperAutomationPeer.cs
- ComIntegrationManifestGenerator.cs
- HtmlInputCheckBox.cs
- BoundColumn.cs
- SymbolResolver.cs
- ObjectDesignerDataSourceView.cs
- TreeViewItem.cs
- SignedXmlDebugLog.cs
- TextTabProperties.cs
- StringCollectionEditor.cs
- BufferedReadStream.cs
- DataGridViewCellEventArgs.cs
- SafeNativeMethods.cs
- ZipIOBlockManager.cs
- TextChange.cs
- CodeTypeDeclaration.cs
- SamlAction.cs
- DebugController.cs
- RegexGroup.cs
- BulletedListEventArgs.cs
- ExtendedProtectionPolicyElement.cs
- followingquery.cs
- cookie.cs
- LinqDataSourceUpdateEventArgs.cs
- GeneralTransform.cs
- SelectedDatesCollection.cs
- CapiSafeHandles.cs
- SchemaImporterExtension.cs
- DataServiceHostFactory.cs
- DataView.cs
- AutomationPropertyInfo.cs
- LocalBuilder.cs
- OpacityConverter.cs
- ContractSearchPattern.cs
- RegexCompiler.cs
- ExtenderProvidedPropertyAttribute.cs
- AttachmentCollection.cs
- CaseInsensitiveComparer.cs
- UserControlParser.cs
- ReturnType.cs
- HttpVersion.cs
- Point4D.cs
- CroppedBitmap.cs
- JournalEntry.cs
- OuterGlowBitmapEffect.cs
- RichTextBoxConstants.cs
- WsatServiceAddress.cs
- PeerTransportCredentialType.cs
- LineServices.cs
- FunctionNode.cs
- DefinitionBase.cs
- HintTextConverter.cs
- Pens.cs
- ItemCollection.cs
- AQNBuilder.cs
- RelationalExpressions.cs
- SystemNetHelpers.cs
- XamlPointCollectionSerializer.cs
- PageBuildProvider.cs
- CorrelationRequestContext.cs
- KeyValueConfigurationCollection.cs