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
- MetadataFile.cs
- Gdiplus.cs
- HttpListenerTimeoutManager.cs
- ContextMenuStrip.cs
- SimpleModelProvider.cs
- BaseTemplateBuildProvider.cs
- DoubleCollection.cs
- StylusOverProperty.cs
- ConnectionStringsExpressionEditor.cs
- HtmlLink.cs
- ZipIORawDataFileBlock.cs
- errorpatternmatcher.cs
- Activity.cs
- SchemaImporter.cs
- ImportContext.cs
- CryptoApi.cs
- columnmapfactory.cs
- ECDiffieHellman.cs
- HMAC.cs
- XPathBinder.cs
- GridItemProviderWrapper.cs
- Vector3DValueSerializer.cs
- WebProxyScriptElement.cs
- SchemaInfo.cs
- InputLanguageManager.cs
- RowBinding.cs
- TextTrailingCharacterEllipsis.cs
- ToolStripRendererSwitcher.cs
- PersistenceException.cs
- StreamMarshaler.cs
- ExpressionBuilderCollection.cs
- ActivityBuilderHelper.cs
- SerialReceived.cs
- GridViewUpdateEventArgs.cs
- XmlStringTable.cs
- AutomationEvent.cs
- CryptoKeySecurity.cs
- ChangeBlockUndoRecord.cs
- DataGridHyperlinkColumn.cs
- DataGridTextBox.cs
- BamlLocalizableResourceKey.cs
- FlowPosition.cs
- GrammarBuilderRuleRef.cs
- LeaseManager.cs
- ListViewPagedDataSource.cs
- _AutoWebProxyScriptEngine.cs
- Roles.cs
- DocumentsTrace.cs
- CredentialCache.cs
- TextDecorationUnitValidation.cs
- DataGridViewBindingCompleteEventArgs.cs
- TableLayoutSettingsTypeConverter.cs
- ValuePattern.cs
- Rect.cs
- OptimisticConcurrencyException.cs
- Stack.cs
- Content.cs
- XmlSchemaType.cs
- InstanceDescriptor.cs
- ActiveXHelper.cs
- InputGestureCollection.cs
- ApplicationGesture.cs
- PasswordBox.cs
- FormViewPageEventArgs.cs
- FileAccessException.cs
- DisplayInformation.cs
- GrammarBuilderPhrase.cs
- MsmqIntegrationProcessProtocolHandler.cs
- LinkLabelLinkClickedEvent.cs
- Symbol.cs
- UserPersonalizationStateInfo.cs
- NameSpaceExtractor.cs
- OracleConnection.cs
- ViewLoader.cs
- HttpClientCertificate.cs
- BindingListCollectionView.cs
- ThreadStateException.cs
- TransactionFlowAttribute.cs
- CriticalHandle.cs
- MemberInfoSerializationHolder.cs
- ExpressionConverter.cs
- SeparatorAutomationPeer.cs
- TextMarkerSource.cs
- Base64Decoder.cs
- ColorTransform.cs
- TreeBuilder.cs
- PenContext.cs
- DataGridViewCellStyleConverter.cs
- ISFClipboardData.cs
- XmlQueryTypeFactory.cs
- StylusPointPropertyInfoDefaults.cs
- CngUIPolicy.cs
- SqlFunctionAttribute.cs
- InfoCardX509Validator.cs
- METAHEADER.cs
- WebScriptMetadataFormatter.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- AnimationStorage.cs
- DictionaryBase.cs
- IconConverter.cs