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
- CacheVirtualItemsEvent.cs
- StylusSystemGestureEventArgs.cs
- DoubleAnimation.cs
- StyleCollectionEditor.cs
- XmlSchemaProviderAttribute.cs
- SslStream.cs
- DynamicFilter.cs
- PropertyGridCommands.cs
- SafeFileHandle.cs
- GeneralTransform.cs
- ReadOnlyHierarchicalDataSourceView.cs
- MailDefinition.cs
- ImageBrush.cs
- Clock.cs
- SyndicationFeedFormatter.cs
- PagerSettings.cs
- LinkUtilities.cs
- ConfigDefinitionUpdates.cs
- MenuCommandService.cs
- PolygonHotSpot.cs
- DataContractSerializerSection.cs
- ComponentCollection.cs
- CryptoProvider.cs
- ToolStripArrowRenderEventArgs.cs
- SchemaExporter.cs
- CodePrimitiveExpression.cs
- TypedDatasetGenerator.cs
- ViewgenContext.cs
- PropertyIDSet.cs
- XmlDataSourceView.cs
- X509Extension.cs
- PageContent.cs
- handlecollector.cs
- DesignerSerializerAttribute.cs
- SafeRightsManagementPubHandle.cs
- Decoder.cs
- Random.cs
- OpenTypeLayout.cs
- PerformanceCountersElement.cs
- AutomationProperties.cs
- DesignerVerbCollection.cs
- TextModifier.cs
- ActiveXHost.cs
- FormViewUpdateEventArgs.cs
- Comparer.cs
- SqlWebEventProvider.cs
- ResourceDictionary.cs
- ConstraintStruct.cs
- PersonalizableTypeEntry.cs
- xmlglyphRunInfo.cs
- PrintPreviewDialog.cs
- VirtualizingPanel.cs
- WmlControlAdapter.cs
- EntityException.cs
- NodeCounter.cs
- ActivityDesignerAccessibleObject.cs
- WebSysDisplayNameAttribute.cs
- NativeMethodsOther.cs
- ObjectSelectorEditor.cs
- SafeNativeMethodsMilCoreApi.cs
- AsmxEndpointPickerExtension.cs
- WasAdminWrapper.cs
- KeyEvent.cs
- AnnotationObservableCollection.cs
- StretchValidation.cs
- ContourSegment.cs
- IgnoreSectionHandler.cs
- DataReaderContainer.cs
- TaskFileService.cs
- AccessedThroughPropertyAttribute.cs
- FileAuthorizationModule.cs
- DataViewListener.cs
- PointCollection.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- ToolBarButtonClickEvent.cs
- ProfileEventArgs.cs
- TransformerInfo.cs
- FlatButtonAppearance.cs
- DesignTimeData.cs
- DelayedRegex.cs
- X509ScopedServiceCertificateElement.cs
- NavigationProgressEventArgs.cs
- PenThreadWorker.cs
- AttributeParameterInfo.cs
- PropertyEntry.cs
- DataStreamFromComStream.cs
- WebServiceData.cs
- StyleSheetRefUrlEditor.cs
- SmtpDigestAuthenticationModule.cs
- HtmlElementCollection.cs
- __Error.cs
- WinEventTracker.cs
- BitConverter.cs
- GridItemPattern.cs
- NameValueConfigurationCollection.cs
- TranslateTransform.cs
- SiteMapDataSourceView.cs
- ErrorFormatterPage.cs
- RegistrationServices.cs
- EndpointDiscoveryMetadata.cs