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
- XmlUtil.cs
- OleDbConnection.cs
- Int32Storage.cs
- TableRowGroup.cs
- Pens.cs
- XmlSchemaAny.cs
- ConditionedDesigner.cs
- SimpleParser.cs
- RequestQueue.cs
- DataPagerFieldCollection.cs
- HandlerWithFactory.cs
- GridViewRowPresenter.cs
- ZipFileInfo.cs
- RsaKeyIdentifierClause.cs
- BamlLocalizer.cs
- LayoutDump.cs
- TreeNodeMouseHoverEvent.cs
- Propagator.cs
- InkCanvasSelection.cs
- CodeIdentifiers.cs
- CodeObjectCreateExpression.cs
- BmpBitmapEncoder.cs
- SortedSet.cs
- EntityRecordInfo.cs
- ScriptingWebServicesSectionGroup.cs
- SystemPens.cs
- DataKey.cs
- SparseMemoryStream.cs
- RangeBaseAutomationPeer.cs
- Socket.cs
- JavaScriptSerializer.cs
- ListViewDeletedEventArgs.cs
- COAUTHINFO.cs
- ProcessMonitor.cs
- FormsAuthenticationEventArgs.cs
- basenumberconverter.cs
- DocumentationServerProtocol.cs
- ExpressionReplacer.cs
- AuthenticationManager.cs
- SmtpReplyReaderFactory.cs
- __Filters.cs
- Int16KeyFrameCollection.cs
- DataControlFieldCollection.cs
- ActivationArguments.cs
- ManipulationLogic.cs
- BuildDependencySet.cs
- TableLayoutColumnStyleCollection.cs
- SwitchElementsCollection.cs
- IsolatedStorageFileStream.cs
- ItemPager.cs
- Group.cs
- SpeechAudioFormatInfo.cs
- SafeEventHandle.cs
- WindowsScrollBarBits.cs
- DtdParser.cs
- InputScopeAttribute.cs
- PreApplicationStartMethodAttribute.cs
- MethodExpr.cs
- ConditionChanges.cs
- CodeComment.cs
- OutputCacheProfile.cs
- AutoGeneratedField.cs
- TextBlock.cs
- KeyboardDevice.cs
- CategoriesDocumentFormatter.cs
- ResolveNameEventArgs.cs
- BeginStoryboard.cs
- JsonServiceDocumentSerializer.cs
- CounterSetInstanceCounterDataSet.cs
- XmlDeclaration.cs
- IpcChannel.cs
- UInt64.cs
- ResourceDictionary.cs
- TreePrinter.cs
- columnmapkeybuilder.cs
- InputEventArgs.cs
- SrgsGrammar.cs
- DataGridHeaderBorder.cs
- PropertyConverter.cs
- SqlInfoMessageEvent.cs
- NavigateEvent.cs
- GridView.cs
- PropertyInfoSet.cs
- Axis.cs
- WeakRefEnumerator.cs
- XslAst.cs
- FixedSOMSemanticBox.cs
- ClientApiGenerator.cs
- StrongNamePublicKeyBlob.cs
- ScrollViewerAutomationPeer.cs
- DataGridDetailsPresenter.cs
- ClaimTypeRequirement.cs
- IgnoreFlushAndCloseStream.cs
- OneWayBindingElement.cs
- TransformDescriptor.cs
- XPathNodePointer.cs
- XPathNavigatorReader.cs
- GrammarBuilderRuleRef.cs
- DefaultWorkflowTransactionService.cs
- FrameworkObject.cs