Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ActiveDocumentEvent.cs
- EllipseGeometry.cs
- ImageSourceConverter.cs
- PersonalizationStateQuery.cs
- Rfc4050KeyFormatter.cs
- OptimalBreakSession.cs
- BamlBinaryWriter.cs
- DataGridViewTextBoxCell.cs
- mediaeventargs.cs
- _LoggingObject.cs
- X509Certificate.cs
- UserControl.cs
- XmlSchemaObject.cs
- SqlMethodAttribute.cs
- HttpContext.cs
- WindowsAltTab.cs
- PropertyManager.cs
- TextTreeInsertUndoUnit.cs
- DataGridViewCellValidatingEventArgs.cs
- XmlIncludeAttribute.cs
- OperationContractAttribute.cs
- FamilyTypefaceCollection.cs
- LinearGradientBrush.cs
- OdbcUtils.cs
- SrgsElementFactoryCompiler.cs
- NCryptNative.cs
- SHA1CryptoServiceProvider.cs
- HTTPNotFoundHandler.cs
- GPPOINTF.cs
- CultureInfoConverter.cs
- WindowsTab.cs
- HyperLinkStyle.cs
- Script.cs
- PropertyGridCommands.cs
- OverrideMode.cs
- DataGridPagingPage.cs
- XpsFontSerializationService.cs
- GridProviderWrapper.cs
- WindowsIdentity.cs
- Int64.cs
- BinaryWriter.cs
- _RequestCacheProtocol.cs
- HttpsHostedTransportConfiguration.cs
- CultureInfoConverter.cs
- ActivityValidator.cs
- AssemblySettingAttributes.cs
- SchemaTableColumn.cs
- AsnEncodedData.cs
- TextDecorationCollectionConverter.cs
- LOSFormatter.cs
- DelegatingStream.cs
- HotCommands.cs
- TeredoHelper.cs
- XmlMapping.cs
- EntityDataSourceDesignerHelper.cs
- ConfigurationManagerInternalFactory.cs
- DataGridViewRowHeaderCell.cs
- InstanceKeyCompleteException.cs
- PropertyIDSet.cs
- StateBag.cs
- _NetRes.cs
- ExpandSegmentCollection.cs
- InputScopeAttribute.cs
- LogManagementAsyncResult.cs
- XmlSchemaAttributeGroup.cs
- PathGeometry.cs
- BitArray.cs
- FrugalList.cs
- HierarchicalDataBoundControl.cs
- CompensatableSequenceActivity.cs
- SocketElement.cs
- XmlAttributeAttribute.cs
- CompilerWrapper.cs
- ToolStripItemCollection.cs
- OneOf.cs
- dtdvalidator.cs
- Instrumentation.cs
- SmiEventSink_Default.cs
- TabControl.cs
- ZoneMembershipCondition.cs
- WebPartDeleteVerb.cs
- UpdatePanelTriggerCollection.cs
- SafeSystemMetrics.cs
- WindowsSysHeader.cs
- ObjectHandle.cs
- KeyTime.cs
- IgnoreDataMemberAttribute.cs
- GridViewRowPresenter.cs
- Helper.cs
- GeometryModel3D.cs
- Point3DIndependentAnimationStorage.cs
- ObjectViewQueryResultData.cs
- CompilerScope.Storage.cs
- Properties.cs
- QueryExecutionOption.cs
- SynchronizationScope.cs
- PersonalizablePropertyEntry.cs
- ListItemCollection.cs
- HelpInfo.cs
- ServiceReference.cs