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 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
- PartitionResolver.cs
- DeploymentExceptionMapper.cs
- HwndHostAutomationPeer.cs
- cookie.cs
- SqlDataSource.cs
- UnsignedPublishLicense.cs
- AdRotator.cs
- UICuesEvent.cs
- AutomationPatternInfo.cs
- StandardRuntimeEnumValidator.cs
- PasswordDeriveBytes.cs
- SectionXmlInfo.cs
- SmtpMail.cs
- BitConverter.cs
- DocumentReference.cs
- TokenFactoryBase.cs
- Propagator.ExtentPlaceholderCreator.cs
- Error.cs
- DataGridViewCellLinkedList.cs
- MenuScrollingVisibilityConverter.cs
- MulticastDelegate.cs
- LocalizabilityAttribute.cs
- Timeline.cs
- XmlSchemaDocumentation.cs
- CodeSubDirectoriesCollection.cs
- Control.cs
- HeaderedItemsControl.cs
- CheckBoxFlatAdapter.cs
- QilNode.cs
- TableLayoutStyle.cs
- Repeater.cs
- DataServiceKeyAttribute.cs
- TextRunTypographyProperties.cs
- XmlnsCache.cs
- ListArgumentProvider.cs
- HttpRequestTraceRecord.cs
- SqlExpander.cs
- Subtree.cs
- SqlTypeConverter.cs
- EntityCommandExecutionException.cs
- UnsafePeerToPeerMethods.cs
- HitTestFilterBehavior.cs
- MobileCategoryAttribute.cs
- XMLSchema.cs
- PopupControlService.cs
- HandlerFactoryWrapper.cs
- SqlXmlStorage.cs
- DateTimeSerializationSection.cs
- BooleanAnimationUsingKeyFrames.cs
- MetabaseServerConfig.cs
- OleDbCommandBuilder.cs
- dataprotectionpermission.cs
- ConstrainedDataObject.cs
- Brushes.cs
- SimpleBitVector32.cs
- DESCryptoServiceProvider.cs
- base64Transforms.cs
- ExtenderHelpers.cs
- WebServiceClientProxyGenerator.cs
- SqlUDTStorage.cs
- SymmetricAlgorithm.cs
- DataFormats.cs
- PrincipalPermission.cs
- StringDictionaryWithComparer.cs
- WeakReference.cs
- MenuItemStyleCollection.cs
- Cursors.cs
- SafeRightsManagementHandle.cs
- TrustManagerMoreInformation.cs
- ContentOperations.cs
- DeflateStream.cs
- PictureBox.cs
- SQLSingle.cs
- CellIdBoolean.cs
- SizeFConverter.cs
- EventLogger.cs
- EdmItemError.cs
- DocumentSequence.cs
- WebSysDescriptionAttribute.cs
- Process.cs
- TreeView.cs
- CodeExporter.cs
- XmlWriterSettings.cs
- WebPartDisplayModeEventArgs.cs
- OutputWindow.cs
- FixedSOMPage.cs
- Policy.cs
- XsltOutput.cs
- ToolStripContextMenu.cs
- ProfileServiceManager.cs
- DebugInfoGenerator.cs
- PointAnimation.cs
- Win32SafeHandles.cs
- EncodingNLS.cs
- DefaultObjectMappingItemCollection.cs
- CultureInfoConverter.cs
- ContentType.cs
- ViewUtilities.cs
- ConfigurationStrings.cs
- AttributeCollection.cs