Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlUtilWriter.cs
- XsltQilFactory.cs
- NameSpaceExtractor.cs
- Types.cs
- XmlNodeChangedEventManager.cs
- AdapterUtil.cs
- BaseParaClient.cs
- PenLineCapValidation.cs
- SQLByte.cs
- TabItemWrapperAutomationPeer.cs
- DefinitionBase.cs
- DiscoveryMessageProperty.cs
- Italic.cs
- ListViewTableRow.cs
- OpCodes.cs
- SelectionRange.cs
- EntityClientCacheKey.cs
- Brush.cs
- XmlAtomicValue.cs
- DispatcherObject.cs
- XsltQilFactory.cs
- WebPartEditorOkVerb.cs
- DataControlFieldHeaderCell.cs
- ReachDocumentSequenceSerializerAsync.cs
- TypeSystem.cs
- DataBoundControl.cs
- RoutedEventArgs.cs
- Hashtable.cs
- HtmlMeta.cs
- UnsafeNativeMethodsCLR.cs
- ComplexTypeEmitter.cs
- FlowchartStart.xaml.cs
- ConfigurationManager.cs
- AbandonedMutexException.cs
- XmlSchemaIdentityConstraint.cs
- FormsAuthenticationModule.cs
- Connector.xaml.cs
- HtmlHistory.cs
- UnsafeNativeMethods.cs
- DoubleAverageAggregationOperator.cs
- ObjectMaterializedEventArgs.cs
- TextEndOfParagraph.cs
- DataGridViewHitTestInfo.cs
- ActivityInstanceReference.cs
- PartitionResolver.cs
- CodeAccessPermission.cs
- ExpressionBinding.cs
- FixedTextSelectionProcessor.cs
- TextEditorTyping.cs
- EdgeProfileValidation.cs
- CodeDomSerializer.cs
- FunctionDetailsReader.cs
- HttpHostedTransportConfiguration.cs
- MessageSecurityOverTcpElement.cs
- IdnElement.cs
- WrapperEqualityComparer.cs
- sqlpipe.cs
- DeferredReference.cs
- WebScriptClientGenerator.cs
- SendDesigner.xaml.cs
- FlowLayoutSettings.cs
- ClientType.cs
- TemplateColumn.cs
- WSSecurityXXX2005.cs
- ParameterModifier.cs
- WebZone.cs
- XPathPatternBuilder.cs
- GraphicsPath.cs
- CodeDirectionExpression.cs
- CodeCompiler.cs
- RequestCache.cs
- ConnectionsZone.cs
- DispatcherProcessingDisabled.cs
- CompositeFontInfo.cs
- AddInIpcChannel.cs
- WebBrowserNavigatingEventHandler.cs
- InputScopeConverter.cs
- RecognizedPhrase.cs
- ItemMap.cs
- ByteArrayHelperWithString.cs
- TemplateControlParser.cs
- CodeExporter.cs
- TextElementEnumerator.cs
- CodeArrayIndexerExpression.cs
- DataGridViewCellLinkedList.cs
- UTF32Encoding.cs
- TextServicesCompartment.cs
- OutOfMemoryException.cs
- RuleConditionDialog.cs
- SkewTransform.cs
- AttributeUsageAttribute.cs
- DynamicFilter.cs
- ComponentEditorPage.cs
- CodeActivity.cs
- PropertyEmitterBase.cs
- TableItemStyle.cs
- ColumnReorderedEventArgs.cs
- SHA384.cs
- BuilderPropertyEntry.cs
- mediaeventshelper.cs