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 / 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
- VersionConverter.cs
- TcpDuplicateContext.cs
- DbMetaDataFactory.cs
- WebPartZone.cs
- WindowsToolbarAsMenu.cs
- sqlnorm.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- ParseNumbers.cs
- CommandID.cs
- DoubleAnimationUsingKeyFrames.cs
- Decimal.cs
- COSERVERINFO.cs
- _AutoWebProxyScriptWrapper.cs
- UpdatableGenericsFeature.cs
- OfTypeExpression.cs
- RuntimeHelpers.cs
- ReceiveSecurityHeader.cs
- AppDomain.cs
- M3DUtil.cs
- SectionInput.cs
- ThreadPool.cs
- _ListenerAsyncResult.cs
- DbConnectionInternal.cs
- InfoCardBaseException.cs
- SessionEndingCancelEventArgs.cs
- BitmapEncoder.cs
- DataPager.cs
- BulletedListEventArgs.cs
- CodeTryCatchFinallyStatement.cs
- DataGridTablesFactory.cs
- ProtocolsConfiguration.cs
- QualifierSet.cs
- DownloadProgressEventArgs.cs
- WsatConfiguration.cs
- cookiecontainer.cs
- TextElementEnumerator.cs
- DataGridViewRow.cs
- Debug.cs
- BackStopAuthenticationModule.cs
- Pair.cs
- ChannelManager.cs
- HttpModulesSection.cs
- SqlConnectionString.cs
- DataGridCellInfo.cs
- _DisconnectOverlappedAsyncResult.cs
- WebPartConnection.cs
- WebPartDisplayModeCollection.cs
- XPathDocumentNavigator.cs
- CurrentTimeZone.cs
- cookieexception.cs
- CodeTypeReferenceCollection.cs
- HttpCachePolicy.cs
- SafeSecurityHelper.cs
- UnsafeNativeMethods.cs
- CharConverter.cs
- AdapterDictionary.cs
- TextTreeTextElementNode.cs
- SystemParameters.cs
- JournalEntryListConverter.cs
- Header.cs
- RestHandlerFactory.cs
- DiscoveryInnerClientAdhoc11.cs
- Camera.cs
- MediaPlayer.cs
- TableLayoutRowStyleCollection.cs
- SiteMapDataSource.cs
- configsystem.cs
- HostSecurityManager.cs
- StyleXamlTreeBuilder.cs
- HttpProtocolReflector.cs
- ButtonStandardAdapter.cs
- ErrorInfoXmlDocument.cs
- MethodMessage.cs
- RbTree.cs
- PointAnimationClockResource.cs
- ProcessInfo.cs
- ProxyGenerator.cs
- _ListenerRequestStream.cs
- TypeUtil.cs
- StringArrayConverter.cs
- StackSpiller.Temps.cs
- SqlDataSourceSelectingEventArgs.cs
- Emitter.cs
- CalendarDesigner.cs
- ClientUriBehavior.cs
- WebPartDisplayModeCancelEventArgs.cs
- HttpConfigurationSystem.cs
- TextEncodedRawTextWriter.cs
- OleDbFactory.cs
- ResourceDictionary.cs
- LayoutInformation.cs
- TextDecorationCollection.cs
- TimeZone.cs
- EditBehavior.cs
- PhysicalAddress.cs
- SafeArrayRankMismatchException.cs
- TaskFileService.cs
- MailWriter.cs
- AsmxEndpointPickerExtension.cs
- WebPageTraceListener.cs