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
- ObjectDataSourceMethodEventArgs.cs
- Dispatcher.cs
- ToolStripDropDownClosedEventArgs.cs
- NativeMethods.cs
- ErrorHandlerModule.cs
- TaiwanCalendar.cs
- ContainerActivationHelper.cs
- MenuItem.cs
- SqlUtils.cs
- TdsParserStaticMethods.cs
- Style.cs
- BindingList.cs
- ToolStripAdornerWindowService.cs
- TextServicesDisplayAttribute.cs
- StatusBarDrawItemEvent.cs
- SplashScreenNativeMethods.cs
- InlinedLocationReference.cs
- UInt64Converter.cs
- InvalidCastException.cs
- CodeSnippetStatement.cs
- NameGenerator.cs
- MembershipSection.cs
- MimeWriter.cs
- OrderedDictionary.cs
- SplashScreen.cs
- DynamicRouteExpression.cs
- DbConvert.cs
- HwndHostAutomationPeer.cs
- UnsafeNetInfoNativeMethods.cs
- OwnerDrawPropertyBag.cs
- SessionStateContainer.cs
- ForceCopyBuildProvider.cs
- DataQuery.cs
- HeaderCollection.cs
- PipelineModuleStepContainer.cs
- AmbientProperties.cs
- ResourceDescriptionAttribute.cs
- LineUtil.cs
- LogFlushAsyncResult.cs
- TaiwanCalendar.cs
- TaskResultSetter.cs
- ObfuscationAttribute.cs
- SystemColorTracker.cs
- GlyphElement.cs
- EncoderParameter.cs
- DynamicUpdateCommand.cs
- DbParameterCollection.cs
- SchemaSetCompiler.cs
- ChildDocumentBlock.cs
- DataGridAddNewRow.cs
- CreateUserWizardStep.cs
- FontInfo.cs
- Page.cs
- DesignerSerializerAttribute.cs
- DoubleUtil.cs
- FormClosedEvent.cs
- WindowsFormsLinkLabel.cs
- Rfc4050KeyFormatter.cs
- typedescriptorpermission.cs
- XhtmlConformanceSection.cs
- WindowsToolbar.cs
- HttpHandlerAction.cs
- HostingPreferredMapPath.cs
- PolyBezierSegment.cs
- HttpResponseHeader.cs
- SafeFileMappingHandle.cs
- VisualCollection.cs
- PageCatalogPart.cs
- ConfigXmlSignificantWhitespace.cs
- ToolboxBitmapAttribute.cs
- __FastResourceComparer.cs
- MapPathBasedVirtualPathProvider.cs
- PngBitmapEncoder.cs
- VolatileEnlistmentMultiplexing.cs
- Rect.cs
- ProtocolsConfigurationEntry.cs
- MSAAWinEventWrap.cs
- XmlAutoDetectWriter.cs
- XamlBrushSerializer.cs
- StringCollection.cs
- InkCollectionBehavior.cs
- ResourceManager.cs
- RadioButtonStandardAdapter.cs
- XmlSchemaValidator.cs
- XmlSchemaRedefine.cs
- DeclarationUpdate.cs
- LinqDataSourceDisposeEventArgs.cs
- DataTableReaderListener.cs
- ClientSettingsStore.cs
- XPathSingletonIterator.cs
- BaseProcessProtocolHandler.cs
- MessagePartDescription.cs
- StylusPointPropertyInfoDefaults.cs
- SortDescription.cs
- ExitEventArgs.cs
- PageSetupDialog.cs
- SQLResource.cs
- PenThreadWorker.cs
- DynamicRouteExpression.cs
- Addressing.cs