Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SecurityChannelFactory.cs
- StringDictionaryEditor.cs
- ManagedFilter.cs
- BitmapFrame.cs
- DiscoveryDocument.cs
- LineGeometry.cs
- OrderedDictionary.cs
- ZipIOLocalFileBlock.cs
- QuaternionAnimation.cs
- ScriptReference.cs
- Binding.cs
- WebPartMovingEventArgs.cs
- FileReservationCollection.cs
- AmbientProperties.cs
- GZipUtils.cs
- PropertyMapper.cs
- BaseCAMarshaler.cs
- RTLAwareMessageBox.cs
- Base64Encoder.cs
- EventItfInfo.cs
- OperandQuery.cs
- XmlProcessingInstruction.cs
- MarkupCompilePass1.cs
- ArrayWithOffset.cs
- FileChangesMonitor.cs
- CachedPathData.cs
- PixelShader.cs
- Variant.cs
- ContentType.cs
- FixedPage.cs
- SecurityCriticalDataForSet.cs
- BasePropertyDescriptor.cs
- KeyInstance.cs
- CallbackDebugBehavior.cs
- HttpStreamMessageEncoderFactory.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- HandoffBehavior.cs
- ProfileService.cs
- DataGridViewCellConverter.cs
- StringFunctions.cs
- MatrixAnimationBase.cs
- TransformPattern.cs
- ReadOnlyCollectionBase.cs
- XmlNamedNodeMap.cs
- WebConfigurationFileMap.cs
- DataGridViewCellLinkedList.cs
- RuntimeTransactionHandle.cs
- LayoutSettings.cs
- PropertyGeneratedEventArgs.cs
- TrackBarRenderer.cs
- MetadataArtifactLoaderCompositeResource.cs
- WebEventCodes.cs
- MetricEntry.cs
- ACL.cs
- HitTestWithPointDrawingContextWalker.cs
- DesignerToolboxInfo.cs
- UntypedNullExpression.cs
- SoapEnumAttribute.cs
- HtmlContainerControl.cs
- XmlValueConverter.cs
- DataContractJsonSerializerOperationBehavior.cs
- DbDataSourceEnumerator.cs
- DataContractJsonSerializerOperationFormatter.cs
- AutoResizedEvent.cs
- NavigatorInput.cs
- WebPartEditVerb.cs
- ThreadAttributes.cs
- SessionStateSection.cs
- Deflater.cs
- RSAOAEPKeyExchangeFormatter.cs
- DtdParser.cs
- AssemblyInfo.cs
- StringKeyFrameCollection.cs
- WebPartExportVerb.cs
- UnknownBitmapDecoder.cs
- EntryWrittenEventArgs.cs
- WorkflowShape.cs
- ToolTipService.cs
- XPathPatternBuilder.cs
- TemplatedMailWebEventProvider.cs
- OleDbCommandBuilder.cs
- ValidateNames.cs
- ShaderEffect.cs
- SingleStorage.cs
- XmlSchemaSimpleContentExtension.cs
- OleDbMetaDataFactory.cs
- TrackingMemoryStream.cs
- hresults.cs
- TCPClient.cs
- filewebrequest.cs
- OdbcFactory.cs
- OutOfProcStateClientManager.cs
- DataShape.cs
- DataServiceCollectionOfT.cs
- XmlQualifiedName.cs
- ReaderContextStackData.cs
- Accessible.cs
- SynchronizedPool.cs
- DataServiceStreamProviderWrapper.cs
- TemplatedMailWebEventProvider.cs