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
- StubHelpers.cs
- ImageListDesigner.cs
- TypeElement.cs
- FileRegion.cs
- SchemaEntity.cs
- StringFunctions.cs
- PropertyPathWorker.cs
- PrintPreviewDialog.cs
- ApplicationId.cs
- ChildrenQuery.cs
- AlphaSortedEnumConverter.cs
- RawStylusInputReport.cs
- TextServicesHost.cs
- Registry.cs
- ClientSettingsSection.cs
- SBCSCodePageEncoding.cs
- ManagedWndProcTracker.cs
- RegexStringValidator.cs
- ServiceInstanceProvider.cs
- WebPartConnectionsConnectVerb.cs
- TagPrefixCollection.cs
- ControlTemplate.cs
- SamlConstants.cs
- SqlProfileProvider.cs
- CodeDomComponentSerializationService.cs
- MessageLogger.cs
- LineServices.cs
- XsltException.cs
- LinqDataSourceHelper.cs
- CharUnicodeInfo.cs
- TemplateField.cs
- ClientRoleProvider.cs
- RegexStringValidator.cs
- ObjectCloneHelper.cs
- SortDescriptionCollection.cs
- ProgressBar.cs
- PageRequestManager.cs
- XmlStreamStore.cs
- InfoCardProofToken.cs
- CommentAction.cs
- MissingSatelliteAssemblyException.cs
- SettingsPropertyNotFoundException.cs
- Vector3D.cs
- SqlProviderServices.cs
- DispatcherFrame.cs
- GetLastErrorDetailsRequest.cs
- SymLanguageType.cs
- namescope.cs
- JsonUriDataContract.cs
- EasingKeyFrames.cs
- CollectionContainer.cs
- PathParser.cs
- IChannel.cs
- Context.cs
- SimpleTableProvider.cs
- CodeDOMProvider.cs
- VisualStateChangedEventArgs.cs
- OdbcException.cs
- DataGridViewCellValueEventArgs.cs
- ErrorFormatterPage.cs
- ToolStripDesignerUtils.cs
- SchemaLookupTable.cs
- TextModifierScope.cs
- SafeNativeMethods.cs
- Latin1Encoding.cs
- DesignerAdRotatorAdapter.cs
- ExtensionFile.cs
- DateTimeSerializationSection.cs
- GifBitmapEncoder.cs
- BitmapEffectInputData.cs
- DiscoveryDocument.cs
- LocalValueEnumerator.cs
- DateTimeOffsetConverter.cs
- StorageMappingFragment.cs
- DesignTimeValidationFeature.cs
- ValueType.cs
- RootDesignerSerializerAttribute.cs
- DataGridViewCellEventArgs.cs
- WaitingCursor.cs
- UInt32Storage.cs
- CatalogZoneDesigner.cs
- SqlProviderServices.cs
- MimeMapping.cs
- FileDialog_Vista.cs
- TreeWalkHelper.cs
- SimpleApplicationHost.cs
- ControlBuilder.cs
- _AutoWebProxyScriptEngine.cs
- StrongNameUtility.cs
- Container.cs
- AssemblyHash.cs
- ParserContext.cs
- ReferencedCollectionType.cs
- BooleanAnimationBase.cs
- PowerModeChangedEventArgs.cs
- QilTargetType.cs
- WhitespaceRuleReader.cs
- WebPart.cs
- FocusChangedEventArgs.cs
- ConcurrentStack.cs