Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilTernary.cs / 1 / QilTernary.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 three children. /// ////// Don't construct QIL nodes directly; instead, use the internal class QilTernary : QilNode { private QilNode left, center, right; //----------------------------------------------- // Constructor //----------------------------------------------- ///QilFactory . ////// Construct a new node /// public QilTernary(QilNodeType nodeType, QilNode left, QilNode center, QilNode right) : base(nodeType) { this.left = left; this.center = center; this.right = right; } //----------------------------------------------- // IListmethods -- override //----------------------------------------------- public override int Count { get { return 3; } } public override QilNode this[int index] { get { switch (index) { case 0: return this.left; case 1: return this.center; case 2: return this.right; default: throw new IndexOutOfRangeException(); } } set { switch (index) { case 0: this.left = value; break; case 1: this.center = value; break; case 2: this.right = value; break; default: throw new IndexOutOfRangeException(); } } } //----------------------------------------------- // QilTernary methods //----------------------------------------------- public QilNode Left { get { return this.left; } set { this.left = value; } } public QilNode Center { get { return this.center; } set { this.center = 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 three children. /// ////// Don't construct QIL nodes directly; instead, use the internal class QilTernary : QilNode { private QilNode left, center, right; //----------------------------------------------- // Constructor //----------------------------------------------- ///QilFactory . ////// Construct a new node /// public QilTernary(QilNodeType nodeType, QilNode left, QilNode center, QilNode right) : base(nodeType) { this.left = left; this.center = center; this.right = right; } //----------------------------------------------- // IListmethods -- override //----------------------------------------------- public override int Count { get { return 3; } } public override QilNode this[int index] { get { switch (index) { case 0: return this.left; case 1: return this.center; case 2: return this.right; default: throw new IndexOutOfRangeException(); } } set { switch (index) { case 0: this.left = value; break; case 1: this.center = value; break; case 2: this.right = value; break; default: throw new IndexOutOfRangeException(); } } } //----------------------------------------------- // QilTernary methods //----------------------------------------------- public QilNode Left { get { return this.left; } set { this.left = value; } } public QilNode Center { get { return this.center; } set { this.center = 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
- ObjectViewQueryResultData.cs
- SoapEnvelopeProcessingElement.cs
- ProfileEventArgs.cs
- SurrogateSelector.cs
- ValidationRuleCollection.cs
- MenuStrip.cs
- HtmlCommandAdapter.cs
- SqlInfoMessageEvent.cs
- DataServiceProviderWrapper.cs
- DupHandleConnectionReader.cs
- SystemIPv6InterfaceProperties.cs
- CompositeCollection.cs
- BuilderPropertyEntry.cs
- FactoryId.cs
- DesignerVerb.cs
- OptimizerPatterns.cs
- PenThreadPool.cs
- DeviceSpecificChoice.cs
- TemplateControlParser.cs
- ExpressionBindingCollection.cs
- ControlIdConverter.cs
- Scripts.cs
- XamlRtfConverter.cs
- TimelineClockCollection.cs
- SplashScreenNativeMethods.cs
- PageCodeDomTreeGenerator.cs
- Identifier.cs
- VirtualPathUtility.cs
- GeometryModel3D.cs
- GlobalAllocSafeHandle.cs
- DataGrid.cs
- PostBackTrigger.cs
- Int64AnimationUsingKeyFrames.cs
- BamlLocalizationDictionary.cs
- XmlDocumentSerializer.cs
- ResolvedKeyFrameEntry.cs
- MenuAdapter.cs
- NameTable.cs
- WebCategoryAttribute.cs
- LockedBorderGlyph.cs
- InvokeHandlers.cs
- UserThread.cs
- CellLabel.cs
- NetworkStream.cs
- TableTextElementCollectionInternal.cs
- DataGridViewCell.cs
- SQLByteStorage.cs
- SqlProfileProvider.cs
- SqlDataSourceStatusEventArgs.cs
- RequestCachePolicyConverter.cs
- BindStream.cs
- DrawingImage.cs
- GlyphElement.cs
- CodeAttributeArgumentCollection.cs
- StorageAssociationTypeMapping.cs
- PrePostDescendentsWalker.cs
- FixedSOMGroup.cs
- EventLogStatus.cs
- ThousandthOfEmRealDoubles.cs
- ResizeGrip.cs
- Selection.cs
- ImageConverter.cs
- SourceLineInfo.cs
- FormatterServices.cs
- CorrelationScope.cs
- SystemColors.cs
- PolyLineSegmentFigureLogic.cs
- XmlDictionaryReader.cs
- PortCache.cs
- Viewport3DAutomationPeer.cs
- ISAPIWorkerRequest.cs
- DateTimeConstantAttribute.cs
- ContainerUIElement3D.cs
- CodeLinePragma.cs
- SeverityFilter.cs
- EndPoint.cs
- XmlSchemaProviderAttribute.cs
- EntityTransaction.cs
- EasingQuaternionKeyFrame.cs
- Size.cs
- SmiEventSink_DeferedProcessing.cs
- BindingEntityInfo.cs
- CursorInteropHelper.cs
- OutputBuffer.cs
- LayoutEvent.cs
- ZipIOBlockManager.cs
- Column.cs
- oledbconnectionstring.cs
- ProfileManager.cs
- RightsManagementPermission.cs
- FontCacheUtil.cs
- MbpInfo.cs
- TypeSystem.cs
- DataGridHeaderBorder.cs
- WindowHideOrCloseTracker.cs
- ToolStripSeparator.cs
- RelationshipFixer.cs
- PropertyRef.cs
- ColumnTypeConverter.cs
- BufferModesCollection.cs