Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- _IPv4Address.cs
- InteropBitmapSource.cs
- SQLStringStorage.cs
- ElementsClipboardData.cs
- WebConvert.cs
- ScriptBehaviorDescriptor.cs
- Comparer.cs
- ReversePositionQuery.cs
- ConfigurationManagerInternalFactory.cs
- Block.cs
- OrderPreservingPipeliningMergeHelper.cs
- ToolboxItemLoader.cs
- DataGridColumnCollection.cs
- ViewGenResults.cs
- odbcmetadatacolumnnames.cs
- Bold.cs
- SynchronizingStream.cs
- Util.cs
- AnnotationHighlightLayer.cs
- ZipIOExtraFieldElement.cs
- ActivityExecutor.cs
- OutOfProcStateClientManager.cs
- AssemblyCacheEntry.cs
- CustomErrorsSection.cs
- HtmlHistory.cs
- HashHelper.cs
- PackageDigitalSignature.cs
- HttpHostedTransportConfiguration.cs
- PathHelper.cs
- ToolStripPanelDesigner.cs
- EmptyTextWriter.cs
- SecurityException.cs
- InputScope.cs
- BaseTemplatedMobileComponentEditor.cs
- OutKeywords.cs
- DoubleAnimationBase.cs
- DropShadowBitmapEffect.cs
- InternalDuplexBindingElement.cs
- ReaderContextStackData.cs
- UserUseLicenseDictionaryLoader.cs
- CurrentChangingEventManager.cs
- Route.cs
- ObjectToIdCache.cs
- TraceHandlerErrorFormatter.cs
- TranslateTransform.cs
- KnownTypesProvider.cs
- JsonEnumDataContract.cs
- HtmlWindowCollection.cs
- ToolStripPanelSelectionGlyph.cs
- UnauthorizedWebPart.cs
- UITypeEditor.cs
- DrawListViewSubItemEventArgs.cs
- _ConnectOverlappedAsyncResult.cs
- MonitoringDescriptionAttribute.cs
- Rule.cs
- XmlSchemaInclude.cs
- CaseCqlBlock.cs
- ResourcePermissionBaseEntry.cs
- BoundField.cs
- XmlSchemaExporter.cs
- WebBrowserProgressChangedEventHandler.cs
- SqlLiftIndependentRowExpressions.cs
- SrgsDocumentParser.cs
- ToolStripDropDownClosingEventArgs.cs
- PageCodeDomTreeGenerator.cs
- MSAAWinEventWrap.cs
- DeploymentExceptionMapper.cs
- Rectangle.cs
- WhitespaceSignificantCollectionAttribute.cs
- Filter.cs
- CultureTable.cs
- contentDescriptor.cs
- ExpandableObjectConverter.cs
- WindowsListViewItemStartMenu.cs
- Debug.cs
- XXXOnTypeBuilderInstantiation.cs
- XmlILAnnotation.cs
- ToolStripPanelRow.cs
- MobileControlsSection.cs
- ServiceOperationWrapper.cs
- MailMessageEventArgs.cs
- ErrorTolerantObjectWriter.cs
- LongValidatorAttribute.cs
- ToolStripControlHost.cs
- DictionaryEditChange.cs
- XPathNodeIterator.cs
- ThicknessAnimation.cs
- QueryableDataSourceEditData.cs
- TdsParserSafeHandles.cs
- PermissionRequestEvidence.cs
- COM2ComponentEditor.cs
- AssemblyCache.cs
- BrowserCapabilitiesFactory35.cs
- CaseInsensitiveHashCodeProvider.cs
- ListBindingHelper.cs
- CodeTypeDeclarationCollection.cs
- SerializableAttribute.cs
- ToolStripContentPanelDesigner.cs
- ConfigXmlText.cs
- ByteStack.cs