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
- SerializationException.cs
- ComMethodElementCollection.cs
- ReachFixedPageSerializer.cs
- DataPagerFieldCommandEventArgs.cs
- ObjectDataProvider.cs
- TreeView.cs
- DateTimeOffset.cs
- PageBreakRecord.cs
- ISessionStateStore.cs
- WebPartConnection.cs
- WebPartTransformerCollection.cs
- HtmlFormWrapper.cs
- PropertyConverter.cs
- QueryCacheEntry.cs
- PagerSettings.cs
- SystemNetworkInterface.cs
- ControlPaint.cs
- ADConnectionHelper.cs
- GridViewColumnHeader.cs
- MediaCommands.cs
- XMLDiffLoader.cs
- RenderContext.cs
- WebPartEditorCancelVerb.cs
- CompositeScriptReference.cs
- SafeNativeMethodsOther.cs
- FormatterServices.cs
- MultiView.cs
- Config.cs
- PageVisual.cs
- ApplicationBuildProvider.cs
- DynamicFilter.cs
- PackageDigitalSignatureManager.cs
- ParallelTimeline.cs
- AmbientLight.cs
- SelectionUIService.cs
- DesignTimeParseData.cs
- PageTrueTypeFont.cs
- Padding.cs
- SingleAnimation.cs
- DataIdProcessor.cs
- CellIdBoolean.cs
- MediaCommands.cs
- VisualStyleInformation.cs
- SeekStoryboard.cs
- BitmapCache.cs
- CharacterBuffer.cs
- COM2IDispatchConverter.cs
- StructureChangedEventArgs.cs
- UserControlBuildProvider.cs
- BuildDependencySet.cs
- TextTabProperties.cs
- MaskedTextBoxTextEditorDropDown.cs
- ObjectHandle.cs
- OdbcCommandBuilder.cs
- ValidationPropertyAttribute.cs
- SqlGenerator.cs
- XsltContext.cs
- XmlArrayAttribute.cs
- Pen.cs
- FrugalList.cs
- _CommandStream.cs
- ConnectionPoint.cs
- WorkItem.cs
- HashUtility.cs
- BoolExpr.cs
- WebRequestModuleElementCollection.cs
- Size.cs
- SharedPersonalizationStateInfo.cs
- CatalogPartCollection.cs
- GridViewCancelEditEventArgs.cs
- StartUpEventArgs.cs
- ProfileParameter.cs
- VisualBasicImportReference.cs
- TokenFactoryFactory.cs
- PathSegmentCollection.cs
- ApplicationActivator.cs
- ThemeableAttribute.cs
- AlternateViewCollection.cs
- KeyInterop.cs
- Atom10ItemFormatter.cs
- DropSource.cs
- WindowsImpersonationContext.cs
- LocationUpdates.cs
- XslTransform.cs
- CompilerTypeWithParams.cs
- VectorKeyFrameCollection.cs
- StringDictionary.cs
- SqlDataReaderSmi.cs
- XPathNavigatorReader.cs
- UniqueEventHelper.cs
- OverflowException.cs
- ClientCultureInfo.cs
- ActivityInstance.cs
- PersonalizableTypeEntry.cs
- DispatcherEventArgs.cs
- DeclaredTypeValidator.cs
- ClientCredentialsSecurityTokenManager.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- DirectoryObjectSecurity.cs
- BitmapData.cs