Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SamlConstants.cs
- IPGlobalProperties.cs
- OpenTypeLayoutCache.cs
- ToolStripContainer.cs
- Menu.cs
- DictionaryEntry.cs
- MarkupObject.cs
- Models.cs
- AspNetSynchronizationContext.cs
- InputProviderSite.cs
- IpcClientChannel.cs
- HtmlInputControl.cs
- RenderContext.cs
- EmptyWorkItem.cs
- CacheDependency.cs
- ListView.cs
- DropDownButton.cs
- TableLayoutStyle.cs
- OperationAbortedException.cs
- UIHelper.cs
- ConnectionPointCookie.cs
- NetworkInterface.cs
- ResourceIDHelper.cs
- IdentityModelStringsVersion1.cs
- BamlCollectionHolder.cs
- cryptoapiTransform.cs
- DynamicValidator.cs
- DebugInfoGenerator.cs
- DataRowCollection.cs
- XmlReaderSettings.cs
- SourceFileInfo.cs
- UrlParameterWriter.cs
- SqlDependencyListener.cs
- ISAPIRuntime.cs
- VirtualPathProvider.cs
- ExitEventArgs.cs
- PersonalizationStateInfo.cs
- DataQuery.cs
- SystemWebCachingSectionGroup.cs
- SrgsNameValueTag.cs
- XPathAxisIterator.cs
- RemotingSurrogateSelector.cs
- Formatter.cs
- ValueTypePropertyReference.cs
- DBSqlParserColumnCollection.cs
- XmlDocumentType.cs
- MarshalDirectiveException.cs
- VariantWrapper.cs
- NumberFunctions.cs
- AuthenticatingEventArgs.cs
- StateItem.cs
- WebPartEditorApplyVerb.cs
- FixedPageAutomationPeer.cs
- TextTreeTextElementNode.cs
- PreservationFileReader.cs
- FromReply.cs
- EntityDataReader.cs
- PreviewPrintController.cs
- ConstantSlot.cs
- XmlComplianceUtil.cs
- AttributeCollection.cs
- PairComparer.cs
- BreakRecordTable.cs
- Sql8ExpressionRewriter.cs
- ThreadExceptionEvent.cs
- CodePrimitiveExpression.cs
- SchemaUtility.cs
- BookmarkInfo.cs
- InstanceCollisionException.cs
- Pts.cs
- EastAsianLunisolarCalendar.cs
- UnlockInstanceCommand.cs
- MatrixTransform3D.cs
- AggregateNode.cs
- Overlapped.cs
- ComplexType.cs
- Utility.cs
- SocketElement.cs
- EnumMember.cs
- MarkupExtensionParser.cs
- HeaderedContentControl.cs
- ResourcesChangeInfo.cs
- TextProperties.cs
- XmlSchemaElement.cs
- List.cs
- LogExtentCollection.cs
- FusionWrap.cs
- DefaultEventAttribute.cs
- MarginCollapsingState.cs
- RelatedView.cs
- CriticalExceptions.cs
- XmlByteStreamReader.cs
- VarRemapper.cs
- EntityCollection.cs
- ApplyImportsAction.cs
- BCLDebug.cs
- ContentHostHelper.cs
- ConstantSlot.cs
- SignatureSummaryDialog.cs
- ISCIIEncoding.cs