Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SqlFunctions.cs
- OdbcDataAdapter.cs
- XmlTextReaderImpl.cs
- FunctionNode.cs
- GroupBox.cs
- EditorZoneBase.cs
- SqlConnectionFactory.cs
- MessageSecurityOverMsmq.cs
- RuntimeComponentFilter.cs
- AspCompat.cs
- ResourceBinder.cs
- XsdDuration.cs
- EventTrigger.cs
- XmlSchemaProviderAttribute.cs
- CodeNamespace.cs
- ToolStripTextBox.cs
- WebPartDisplayModeCancelEventArgs.cs
- ListenerElementsCollection.cs
- Misc.cs
- AppDomainUnloadedException.cs
- NumericUpDown.cs
- FixedDocumentSequencePaginator.cs
- PropertyChangedEventArgs.cs
- BuildManagerHost.cs
- NegatedCellConstant.cs
- RichTextBoxAutomationPeer.cs
- ObjectQueryState.cs
- Formatter.cs
- SiteMapNodeCollection.cs
- WebPartCollection.cs
- HierarchicalDataBoundControl.cs
- ModelUIElement3D.cs
- ControlsConfig.cs
- SQLGuidStorage.cs
- SmtpDigestAuthenticationModule.cs
- Tuple.cs
- SafeCertificateStore.cs
- ColorMatrix.cs
- BinaryObjectWriter.cs
- basemetadatamappingvisitor.cs
- ToolStripDropDownButton.cs
- DrawListViewItemEventArgs.cs
- DataTableCollection.cs
- PreProcessInputEventArgs.cs
- HttpPostedFile.cs
- BitmapEffectCollection.cs
- GraphicsState.cs
- RijndaelManagedTransform.cs
- PropertyItemInternal.cs
- TypeUtil.cs
- CompositeCollection.cs
- SafeHandles.cs
- DefaultMemberAttribute.cs
- WSSecurityJan2004.cs
- ResourceWriter.cs
- IndexedEnumerable.cs
- AuthenticationSchemesHelper.cs
- Scalars.cs
- ExpandoClass.cs
- RefExpr.cs
- DesignerSerializationOptionsAttribute.cs
- EnumConverter.cs
- PropertyRecord.cs
- MatrixTransform.cs
- CardSpaceSelector.cs
- Size.cs
- InOutArgument.cs
- RecordManager.cs
- ItemList.cs
- VisualTreeHelper.cs
- TabletCollection.cs
- TypeConverterAttribute.cs
- SiteMapHierarchicalDataSourceView.cs
- AjaxFrameworkAssemblyAttribute.cs
- ClientSettings.cs
- DropShadowBitmapEffect.cs
- ViewValidator.cs
- Timeline.cs
- PagerSettings.cs
- DispatcherFrame.cs
- PropertyStore.cs
- Tokenizer.cs
- XmlAnyElementAttributes.cs
- Number.cs
- TraceUtils.cs
- ProcessingInstructionAction.cs
- DataGridCaption.cs
- ExpressionVisitor.cs
- WindowsTooltip.cs
- MemoryFailPoint.cs
- EdmSchemaError.cs
- TemporaryBitmapFile.cs
- StaticSiteMapProvider.cs
- GcHandle.cs
- CustomActivityDesigner.cs
- _SSPISessionCache.cs
- WindowsMenu.cs
- SeekableReadStream.cs
- CompositeFontParser.cs
- StrokeDescriptor.cs