Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CodeExporter.cs
- Panel.cs
- MethodRental.cs
- PageContentCollection.cs
- Int64KeyFrameCollection.cs
- DataGridTablesFactory.cs
- Selector.cs
- ServiceXNameTypeConverter.cs
- TextContainerHelper.cs
- ProjectionPlan.cs
- ContextStaticAttribute.cs
- TextParentUndoUnit.cs
- InfoCardProofToken.cs
- TextEditorMouse.cs
- WindowPattern.cs
- PageEventArgs.cs
- _BufferOffsetSize.cs
- XmlNodeReader.cs
- EventListenerClientSide.cs
- Select.cs
- ReferenceEqualityComparer.cs
- UrlParameterWriter.cs
- RequestChannel.cs
- DataGridCaption.cs
- GridLength.cs
- UnaryOperationBinder.cs
- NonBatchDirectoryCompiler.cs
- BlobPersonalizationState.cs
- RadialGradientBrush.cs
- TempFiles.cs
- DataPagerFieldCollection.cs
- DataMisalignedException.cs
- AttributeEmitter.cs
- URLIdentityPermission.cs
- TabRenderer.cs
- PasswordRecovery.cs
- PropertyValueUIItem.cs
- ColorTransform.cs
- CommandHelpers.cs
- ComponentCollection.cs
- SelectedDatesCollection.cs
- CodePrimitiveExpression.cs
- OperationAbortedException.cs
- Dynamic.cs
- DetailsViewPageEventArgs.cs
- NegotiationTokenAuthenticatorState.cs
- PartitionedStream.cs
- RtfToXamlReader.cs
- FontNamesConverter.cs
- LineVisual.cs
- CollectionViewGroupInternal.cs
- StylusDevice.cs
- Context.cs
- DESCryptoServiceProvider.cs
- MiniConstructorInfo.cs
- MasterPageBuildProvider.cs
- SmtpReplyReader.cs
- XmlDataDocument.cs
- Formatter.cs
- UInt32.cs
- CodePageUtils.cs
- SqlBooleanizer.cs
- NamedPipeAppDomainProtocolHandler.cs
- ColumnWidthChangingEvent.cs
- DbParameterHelper.cs
- PixelFormatConverter.cs
- BitStack.cs
- BindingMAnagerBase.cs
- CheckBoxAutomationPeer.cs
- SafeCloseHandleCritical.cs
- DocumentCollection.cs
- BufferedGraphicsManager.cs
- PageCodeDomTreeGenerator.cs
- XmlTypeMapping.cs
- CryptoStream.cs
- Attribute.cs
- EventLogger.cs
- GridViewColumnHeader.cs
- StorageEntitySetMapping.cs
- TypefaceCollection.cs
- TextTabProperties.cs
- FreezableCollection.cs
- ProfileService.cs
- RNGCryptoServiceProvider.cs
- Atom10FormatterFactory.cs
- URIFormatException.cs
- HtmlContainerControl.cs
- PermissionRequestEvidence.cs
- ImageSourceConverter.cs
- Metafile.cs
- AssertUtility.cs
- CacheChildrenQuery.cs
- PerformanceCounter.cs
- PatternMatcher.cs
- AttachedAnnotation.cs
- KeyPressEvent.cs
- AnnotationObservableCollection.cs
- TextContainer.cs
- BaseDataBoundControl.cs
- PersonalizationState.cs