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
- SqlDataSourceFilteringEventArgs.cs
- RemotingConfigParser.cs
- NGCSerializationManager.cs
- FlowDocumentPage.cs
- ArrangedElementCollection.cs
- RuntimeArgumentHandle.cs
- WmlListAdapter.cs
- IndexOutOfRangeException.cs
- AdRotatorDesigner.cs
- GlobalizationAssembly.cs
- SessionStateSection.cs
- PropertyChangingEventArgs.cs
- RedistVersionInfo.cs
- Scripts.cs
- BlobPersonalizationState.cs
- ProfilePropertySettings.cs
- Point3DCollection.cs
- UIElementCollection.cs
- InfoCardAsymmetricCrypto.cs
- EditorPartChrome.cs
- TransactionContextManager.cs
- DiscoveryClientDocuments.cs
- RadioButtonPopupAdapter.cs
- QilFactory.cs
- SkinBuilder.cs
- ImageAutomationPeer.cs
- BitmapData.cs
- QilDataSource.cs
- SqlNotificationEventArgs.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- OneOfTypeConst.cs
- ClientConfigurationSystem.cs
- ErrorTableItemStyle.cs
- ListBox.cs
- EventRouteFactory.cs
- odbcmetadatacollectionnames.cs
- SaveFileDialog.cs
- ApplicationFileParser.cs
- StylusPointDescription.cs
- BamlMapTable.cs
- ApplicationContext.cs
- DocumentReference.cs
- CSharpCodeProvider.cs
- DataExchangeServiceBinder.cs
- SqlResolver.cs
- FilteredXmlReader.cs
- Visual3D.cs
- Transform.cs
- RelationshipNavigation.cs
- MsmqIntegrationElement.cs
- HtmlInputCheckBox.cs
- EntitySqlQueryCacheEntry.cs
- HashAlgorithm.cs
- QilInvokeLateBound.cs
- XmlBinaryWriter.cs
- ConfigXmlElement.cs
- basenumberconverter.cs
- ConvertersCollection.cs
- HtmlInputFile.cs
- CryptoKeySecurity.cs
- EncodingNLS.cs
- ResourcesChangeInfo.cs
- ObjectQueryExecutionPlan.cs
- UTF7Encoding.cs
- RegexNode.cs
- SpecularMaterial.cs
- TraceListener.cs
- SecurityContext.cs
- OdbcStatementHandle.cs
- NotifyCollectionChangedEventArgs.cs
- CodeExpressionCollection.cs
- TextChangedEventArgs.cs
- ScriptHandlerFactory.cs
- TextBox.cs
- ExpressionTextBoxAutomationPeer.cs
- WhitespaceReader.cs
- CompiledRegexRunner.cs
- StructuralCache.cs
- ConfigXmlAttribute.cs
- DSACryptoServiceProvider.cs
- DocumentViewerHelper.cs
- RSACryptoServiceProvider.cs
- StatusBarDrawItemEvent.cs
- __Filters.cs
- DummyDataSource.cs
- ListViewItemCollectionEditor.cs
- NodeFunctions.cs
- DocumentOrderQuery.cs
- Lookup.cs
- PermissionListSet.cs
- MsmqInputChannelBase.cs
- OdbcTransaction.cs
- DisplayInformation.cs
- SmtpDigestAuthenticationModule.cs
- Button.cs
- followingquery.cs
- AssemblyCache.cs
- Column.cs
- OrderPreservingSpoolingTask.cs
- ClassDataContract.cs