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 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
- XmlEventCache.cs
- remotingproxy.cs
- ScaleTransform3D.cs
- SiteOfOriginContainer.cs
- VirtualStackFrame.cs
- TextContainerChangeEventArgs.cs
- DataGridPageChangedEventArgs.cs
- XmlCharacterData.cs
- SurrogateEncoder.cs
- EncryptionUtility.cs
- HyperlinkAutomationPeer.cs
- WindowsAuthenticationEventArgs.cs
- MSAAWinEventWrap.cs
- RadioButtonList.cs
- EpmContentSerializer.cs
- TreeWalkHelper.cs
- HtmlTableRow.cs
- TableDetailsCollection.cs
- KnownIds.cs
- BlobPersonalizationState.cs
- ListCollectionView.cs
- StringResourceManager.cs
- ServiceAuthorizationElement.cs
- BCryptHashAlgorithm.cs
- ProgressiveCrcCalculatingStream.cs
- SizeChangedEventArgs.cs
- InputLanguageEventArgs.cs
- SqlUdtInfo.cs
- GroupLabel.cs
- MultiView.cs
- PageBuildProvider.cs
- AutoGeneratedFieldProperties.cs
- TaskExceptionHolder.cs
- Int64KeyFrameCollection.cs
- DiffuseMaterial.cs
- DelegatingTypeDescriptionProvider.cs
- XmlILConstructAnalyzer.cs
- SiteMapNodeItem.cs
- RelationshipWrapper.cs
- BaseCollection.cs
- WebPartExportVerb.cs
- LayoutDump.cs
- CompilationSection.cs
- DataGridTemplateColumn.cs
- Model3DGroup.cs
- XmlRawWriter.cs
- ListViewCommandEventArgs.cs
- WorkflowInstance.cs
- PolyBezierSegment.cs
- HealthMonitoringSection.cs
- DataFormats.cs
- RowSpanVector.cs
- SerializationFieldInfo.cs
- SamlAudienceRestrictionCondition.cs
- EnvironmentPermission.cs
- WebFormDesignerActionService.cs
- XmlAttributeHolder.cs
- SqlBuilder.cs
- DynamicUpdateCommand.cs
- M3DUtil.cs
- Utils.cs
- ProgressBar.cs
- GridViewCancelEditEventArgs.cs
- CodeGenerator.cs
- FileLoadException.cs
- FormParameter.cs
- Html32TextWriter.cs
- handlecollector.cs
- FtpRequestCacheValidator.cs
- StrokeIntersection.cs
- TextSerializer.cs
- Image.cs
- XmlFileEditor.cs
- figurelength.cs
- WebPartEditorCancelVerb.cs
- GetCertificateRequest.cs
- ServiceNotStartedException.cs
- UidManager.cs
- TextServicesCompartmentEventSink.cs
- SmiSettersStream.cs
- safemediahandle.cs
- GlyphsSerializer.cs
- Typeface.cs
- TableDetailsCollection.cs
- InitiatorSessionSymmetricTransportSecurityProtocol.cs
- Span.cs
- BooleanProjectedSlot.cs
- HasActivatableWorkflowEvent.cs
- HeaderCollection.cs
- UnionCqlBlock.cs
- SizeKeyFrameCollection.cs
- DecimalConverter.cs
- DiscoveryClientReferences.cs
- VirtualDirectoryMappingCollection.cs
- XmlCharCheckingWriter.cs
- Region.cs
- FixedSOMElement.cs
- ContractCodeDomInfo.cs
- XmlSchemaGroupRef.cs
- BooleanConverter.cs