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 QilFactory .
///
internal class QilTernary : QilNode {
private QilNode left, center, right;
//-----------------------------------------------
// Constructor
//-----------------------------------------------
///
/// 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;
}
//-----------------------------------------------
// IList methods -- 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 QilFactory .
///
internal class QilTernary : QilNode {
private QilNode left, center, right;
//-----------------------------------------------
// Constructor
//-----------------------------------------------
///
/// 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;
}
//-----------------------------------------------
// IList methods -- 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
- WinCategoryAttribute.cs
- HttpResponseHeader.cs
- PropertyRecord.cs
- HwndHost.cs
- SchemaComplexType.cs
- ScaleTransform.cs
- OneOf.cs
- MaskedTextBox.cs
- ValidatorCompatibilityHelper.cs
- XPathNavigator.cs
- WebResourceUtil.cs
- NetDataContractSerializer.cs
- NativeMethods.cs
- ServiceObjectContainer.cs
- CollectionChangedEventManager.cs
- TimeSpanValidator.cs
- BamlRecordWriter.cs
- MarkerProperties.cs
- IisTraceListener.cs
- CustomCategoryAttribute.cs
- TextServicesCompartmentEventSink.cs
- SslSecurityTokenParameters.cs
- EmptyReadOnlyDictionaryInternal.cs
- RegistryExceptionHelper.cs
- SqlClientWrapperSmiStream.cs
- ConnectionProviderAttribute.cs
- EndpointIdentityExtension.cs
- VectorCollection.cs
- Label.cs
- PngBitmapDecoder.cs
- Int16KeyFrameCollection.cs
- FrameworkElementFactoryMarkupObject.cs
- WebPartAuthorizationEventArgs.cs
- EntityDataSourceView.cs
- PathFigureCollection.cs
- OverrideMode.cs
- GridItemCollection.cs
- RMEnrollmentPage1.cs
- ScaleTransform.cs
- Substitution.cs
- SingleAnimationUsingKeyFrames.cs
- cookiecontainer.cs
- relpropertyhelper.cs
- TypeConverterValueSerializer.cs
- PageRanges.cs
- SpellCheck.cs
- ObfuscateAssemblyAttribute.cs
- FlowDocumentScrollViewer.cs
- DbConnectionHelper.cs
- DataView.cs
- XamlReader.cs
- FlowLayoutPanelDesigner.cs
- Parameter.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- StateManagedCollection.cs
- OdbcTransaction.cs
- ThaiBuddhistCalendar.cs
- PostBackTrigger.cs
- SQLByteStorage.cs
- WebRequestModuleElement.cs
- ColorBlend.cs
- PersonalizationProviderCollection.cs
- ToolStripInSituService.cs
- DataGridLinkButton.cs
- BridgeDataRecord.cs
- ExtensionDataReader.cs
- StringHelper.cs
- unsafeIndexingFilterStream.cs
- Delay.cs
- DesignTimeParseData.cs
- QuaternionAnimationBase.cs
- ControlAdapter.cs
- PageBreakRecord.cs
- CompiledQueryCacheKey.cs
- UInt64Converter.cs
- iisPickupDirectory.cs
- EmptyElement.cs
- FilterException.cs
- RenderCapability.cs
- MappingSource.cs
- PropertyMetadata.cs
- ListViewItemMouseHoverEvent.cs
- CodeExpressionStatement.cs
- SafeProcessHandle.cs
- NumberAction.cs
- Base64WriteStateInfo.cs
- UnsafeNativeMethods.cs
- ManagementPath.cs
- Quaternion.cs
- ComponentConverter.cs
- RegisteredArrayDeclaration.cs
- VisualBasicDesignerHelper.cs
- VisualStyleTypesAndProperties.cs
- XmlDocumentSerializer.cs
- ProxyFragment.cs
- EncoderNLS.cs
- KnownTypesProvider.cs
- Rules.cs
- CalendarAutomationPeer.cs
- ContainerUIElement3D.cs