Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ // // 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
- Focus.cs
- InstancePersistenceCommandException.cs
- SharedPersonalizationStateInfo.cs
- NamespaceQuery.cs
- Route.cs
- TextTreeTextElementNode.cs
- SmiContext.cs
- EventMappingSettingsCollection.cs
- XmlSchemaValidator.cs
- DetailsViewInsertedEventArgs.cs
- MouseOverProperty.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Component.cs
- NestedContainer.cs
- RsaElement.cs
- DocumentXmlWriter.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- WorkflowCompensationBehavior.cs
- XmlEntityReference.cs
- DbMetaDataColumnNames.cs
- RoutedEventArgs.cs
- DataGridViewCellFormattingEventArgs.cs
- DeferredElementTreeState.cs
- RegistryExceptionHelper.cs
- PrincipalPermission.cs
- SequentialOutput.cs
- HtmlImageAdapter.cs
- AssemblyInfo.cs
- Listbox.cs
- InputScope.cs
- commandenforcer.cs
- ButtonFieldBase.cs
- DataGridViewLinkCell.cs
- HttpRawResponse.cs
- Wildcard.cs
- CodeCatchClause.cs
- CollectionView.cs
- Matrix3DValueSerializer.cs
- WindowsNonControl.cs
- SpellCheck.cs
- FloatUtil.cs
- VerticalAlignConverter.cs
- RadioButtonPopupAdapter.cs
- HandleExceptionArgs.cs
- UnmanagedMarshal.cs
- XamlFilter.cs
- ItemContainerProviderWrapper.cs
- ProcessManager.cs
- SqlConnectionManager.cs
- ColumnReorderedEventArgs.cs
- RowToFieldTransformer.cs
- CallContext.cs
- BaseEntityWrapper.cs
- PrinterSettings.cs
- Geometry.cs
- WizardStepBase.cs
- SecurityState.cs
- InstanceDescriptor.cs
- TextServicesDisplayAttributePropertyRanges.cs
- HighlightVisual.cs
- TagMapInfo.cs
- HttpCachePolicy.cs
- OperationSelectorBehavior.cs
- ComplexObject.cs
- TraceShell.cs
- CompensationTokenData.cs
- RsaSecurityToken.cs
- OracleCommandSet.cs
- DynamicMetaObjectBinder.cs
- PrintDocument.cs
- ArraySegment.cs
- HtmlWindowCollection.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- NamespaceMapping.cs
- DirectoryObjectSecurity.cs
- HashCryptoHandle.cs
- HttpFileCollection.cs
- ManagementExtension.cs
- TextFormatter.cs
- ObjectSet.cs
- RelatedCurrencyManager.cs
- SqlProfileProvider.cs
- MdiWindowListStrip.cs
- EventLogInternal.cs
- MsmqReceiveParameters.cs
- AspNetSynchronizationContext.cs
- OleAutBinder.cs
- ObjectAnimationUsingKeyFrames.cs
- ProfileSettings.cs
- CookielessData.cs
- PlatformCulture.cs
- FormsAuthenticationEventArgs.cs
- SocketPermission.cs
- NamespaceCollection.cs
- JsonReaderWriterFactory.cs
- LinkArea.cs
- LifetimeServices.cs
- AsyncContentLoadedEventArgs.cs
- OutputCacheSection.cs
- DropShadowBitmapEffect.cs