Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- Menu.cs
- SchemaObjectWriter.cs
- XmlException.cs
- PlatformNotSupportedException.cs
- TimeSpan.cs
- IPEndPoint.cs
- RuleInfoComparer.cs
- SmtpNetworkElement.cs
- HttpServerUtilityWrapper.cs
- AsymmetricKeyExchangeFormatter.cs
- EditingContext.cs
- ModelUIElement3D.cs
- LayoutSettings.cs
- _SslSessionsCache.cs
- ReturnEventArgs.cs
- ProcessModelInfo.cs
- DataControlButton.cs
- SrgsElementFactoryCompiler.cs
- SelectionUIHandler.cs
- FlowPanelDesigner.cs
- Quad.cs
- XPathDocument.cs
- ReplyAdapterChannelListener.cs
- ClientEndpointLoader.cs
- ResolveCriteria.cs
- PointCollectionConverter.cs
- PositiveTimeSpanValidator.cs
- SynchronousSendBindingElement.cs
- HtmlElementErrorEventArgs.cs
- TypeTypeConverter.cs
- DataGridViewHitTestInfo.cs
- ServerTooBusyException.cs
- Function.cs
- PrintDialogException.cs
- InstanceNormalEvent.cs
- AttributeAction.cs
- ClrProviderManifest.cs
- Point.cs
- OperationAbortedException.cs
- SolidColorBrush.cs
- SQLRoleProvider.cs
- Cursor.cs
- GcHandle.cs
- MenuCommands.cs
- EventManager.cs
- DirectoryNotFoundException.cs
- UIElementIsland.cs
- SqlTransaction.cs
- QueryableDataSourceEditData.cs
- IIS7UserPrincipal.cs
- ParenthesizePropertyNameAttribute.cs
- BulletedList.cs
- StringConcat.cs
- FileClassifier.cs
- GenericTypeParameterBuilder.cs
- FamilyTypefaceCollection.cs
- _ConnectStream.cs
- MetadataCache.cs
- SchemaContext.cs
- ToolboxBitmapAttribute.cs
- IDQuery.cs
- SortDescription.cs
- Roles.cs
- HttpCookiesSection.cs
- FunctionImportElement.cs
- FrameworkElementAutomationPeer.cs
- StateMachine.cs
- NegotiateStream.cs
- TraceContextEventArgs.cs
- SignedXml.cs
- CustomSignedXml.cs
- HScrollProperties.cs
- WorkflowMarkupSerializerMapping.cs
- RequestQueryProcessor.cs
- Int32CAMarshaler.cs
- PathFigureCollection.cs
- XmlArrayAttribute.cs
- MetabaseReader.cs
- Stacktrace.cs
- TreeView.cs
- ClrPerspective.cs
- UserControl.cs
- CodeTypeDelegate.cs
- CategoryAttribute.cs
- ObjectManager.cs
- SessionIDManager.cs
- SqlInfoMessageEvent.cs
- Compiler.cs
- RadioButtonRenderer.cs
- ModuleConfigurationInfo.cs
- sitestring.cs
- ControlParameter.cs
- CatalogUtil.cs
- SapiGrammar.cs
- SystemColors.cs
- Crc32.cs
- Application.cs
- HandlerFactoryCache.cs
- ExcCanonicalXml.cs
- FileUtil.cs