Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AutoGeneratedFieldProperties.cs
- ContainerUIElement3D.cs
- UrlMapping.cs
- BuilderPropertyEntry.cs
- NoPersistHandle.cs
- SafeNativeMethods.cs
- Formatter.cs
- TypeUtil.cs
- ITextView.cs
- AuthenticationManager.cs
- PeerOutputChannel.cs
- DataGridLinkButton.cs
- ReflectionServiceProvider.cs
- __FastResourceComparer.cs
- RuleProcessor.cs
- SqlProcedureAttribute.cs
- TrackingMemoryStream.cs
- XPathPatternBuilder.cs
- TextTrailingWordEllipsis.cs
- RuleSetBrowserDialog.cs
- DocumentGrid.cs
- XmlSchemas.cs
- ConditionalDesigner.cs
- BooleanFacetDescriptionElement.cs
- Substitution.cs
- FileRecordSequenceCompletedAsyncResult.cs
- DataConnectionHelper.cs
- XmlName.cs
- OSFeature.cs
- documentsequencetextpointer.cs
- ResourceExpression.cs
- RuleSettingsCollection.cs
- SystemDropShadowChrome.cs
- EdmEntityTypeAttribute.cs
- GlobalProxySelection.cs
- SaveLedgerEntryRequest.cs
- MapPathBasedVirtualPathProvider.cs
- DayRenderEvent.cs
- WeakReference.cs
- Descriptor.cs
- NativeMethods.cs
- StringExpressionSet.cs
- XmlILStorageConverter.cs
- ThreadStartException.cs
- EtwProvider.cs
- IgnoreSectionHandler.cs
- TextParentUndoUnit.cs
- SoapCommonClasses.cs
- LabelLiteral.cs
- AxHostDesigner.cs
- WebPartsSection.cs
- BinaryExpressionHelper.cs
- TreeNodeCollection.cs
- CurrencyManager.cs
- TypeEnumerableViewSchema.cs
- MsmqChannelFactory.cs
- TraceFilter.cs
- MailHeaderInfo.cs
- DataGridPageChangedEventArgs.cs
- handlecollector.cs
- TextBoxView.cs
- LineSegment.cs
- WorkflowMessageEventHandler.cs
- Panel.cs
- XmlBaseWriter.cs
- SectionVisual.cs
- SerializationTrace.cs
- XmlQueryStaticData.cs
- WinFormsUtils.cs
- BoolExpr.cs
- IProvider.cs
- ReceiveErrorHandling.cs
- ElementAction.cs
- ReadOnlyTernaryTree.cs
- counter.cs
- RegistrationServices.cs
- CatalogPartCollection.cs
- ShutDownListener.cs
- SafeViewOfFileHandle.cs
- InfocardInteractiveChannelInitializer.cs
- ADMembershipUser.cs
- WorkflowServiceHostFactory.cs
- Registration.cs
- LinkLabel.cs
- XmlSortKeyAccumulator.cs
- ZipIORawDataFileBlock.cs
- StateInitializationDesigner.cs
- BookmarkScopeManager.cs
- FileChangesMonitor.cs
- AttributeCollection.cs
- TextElementEnumerator.cs
- XmlSchemaSubstitutionGroup.cs
- itemelement.cs
- Literal.cs
- ItemChangedEventArgs.cs
- WeakEventTable.cs
- FtpRequestCacheValidator.cs
- XmlSchemaNotation.cs
- DateTimeParse.cs
- TypeUnloadedException.cs