Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilTernary.cs / 1305376 / 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
- Decorator.cs
- ConsoleEntryPoint.cs
- ResourcePermissionBase.cs
- BitmapScalingModeValidation.cs
- UInt16.cs
- adornercollection.cs
- BamlBinaryReader.cs
- BridgeDataReader.cs
- SerializationBinder.cs
- TextTreeNode.cs
- FontClient.cs
- ValidationHelper.cs
- MediaTimeline.cs
- DispatcherOperation.cs
- ProgressBar.cs
- RequestCacheEntry.cs
- transactioncontext.cs
- EventProviderWriter.cs
- CodeTypeParameter.cs
- ConfigXmlCDataSection.cs
- LayoutTable.cs
- UrlAuthFailureHandler.cs
- ValidationSummary.cs
- ModelItemImpl.cs
- ConstructorBuilder.cs
- CommandExpr.cs
- FormParameter.cs
- CompensatableTransactionScopeActivity.cs
- PropertyRef.cs
- ArrayConverter.cs
- BindingContext.cs
- ValidatedControlConverter.cs
- SelectionRange.cs
- EntityClientCacheKey.cs
- SerializationObjectManager.cs
- CodeDelegateCreateExpression.cs
- ListViewTableRow.cs
- GatewayDefinition.cs
- FormsAuthenticationCredentials.cs
- APCustomTypeDescriptor.cs
- AuthorizationRuleCollection.cs
- IPEndPoint.cs
- DataGridTextBoxColumn.cs
- SafeNativeMethods.cs
- AutomationPatternInfo.cs
- SqlDataSourceCache.cs
- ACL.cs
- MailHeaderInfo.cs
- PropertyGridEditorPart.cs
- FtpWebRequest.cs
- UnaryQueryOperator.cs
- SecurityBindingElementImporter.cs
- AppDomainManager.cs
- HttpCachePolicyElement.cs
- WindowsToolbarItemAsMenuItem.cs
- IOThreadTimer.cs
- mda.cs
- NativeMethods.cs
- XmlConvert.cs
- StrokeCollection2.cs
- LZCodec.cs
- ProtocolsConfiguration.cs
- LoadGrammarCompletedEventArgs.cs
- securitymgrsite.cs
- DefaultEventAttribute.cs
- ChannelReliableSession.cs
- Pens.cs
- StateBag.cs
- JobDuplex.cs
- Helpers.cs
- GraphicsState.cs
- PopupEventArgs.cs
- IncrementalHitTester.cs
- XPathConvert.cs
- ValueOfAction.cs
- HttpDictionary.cs
- KeyNameIdentifierClause.cs
- LowerCaseStringConverter.cs
- HtmlPhoneCallAdapter.cs
- TimelineGroup.cs
- SymbolMethod.cs
- TypeSemantics.cs
- InvokeDelegate.cs
- NegotiateStream.cs
- DocumentSchemaValidator.cs
- WmlValidationSummaryAdapter.cs
- Encoder.cs
- SimpleRecyclingCache.cs
- InternalBase.cs
- XPathEmptyIterator.cs
- MimeTypePropertyAttribute.cs
- Quaternion.cs
- ColorAnimation.cs
- Int32.cs
- FormViewCommandEventArgs.cs
- FileSystemWatcher.cs
- FloaterParaClient.cs
- WebPartDisplayModeCancelEventArgs.cs
- Globals.cs
- FixedPageAutomationPeer.cs