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 / QilBinary.cs / 1 / QilBinary.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 two children.
///
///
/// Don't construct QIL nodes directly; instead, use the QilFactory .
///
internal class QilBinary : QilNode {
private QilNode left, right;
//-----------------------------------------------
// Constructor
//-----------------------------------------------
///
/// Construct a new node
///
public QilBinary(QilNodeType nodeType, QilNode left, QilNode right) : base(nodeType) {
this.left = left;
this.right = right;
}
//-----------------------------------------------
// IList methods -- override
//-----------------------------------------------
public override int Count {
get { return 2; }
}
public override QilNode this[int index] {
get {
switch (index) {
case 0: return this.left;
case 1: return this.right;
default: throw new IndexOutOfRangeException();
}
}
set {
switch (index) {
case 0: this.left = value; break;
case 1: this.right = value; break;
default: throw new IndexOutOfRangeException();
}
}
}
//-----------------------------------------------
// QilBinary methods
//-----------------------------------------------
public QilNode Left {
get { return this.left; }
set { this.left = 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 two children.
///
///
/// Don't construct QIL nodes directly; instead, use the QilFactory .
///
internal class QilBinary : QilNode {
private QilNode left, right;
//-----------------------------------------------
// Constructor
//-----------------------------------------------
///
/// Construct a new node
///
public QilBinary(QilNodeType nodeType, QilNode left, QilNode right) : base(nodeType) {
this.left = left;
this.right = right;
}
//-----------------------------------------------
// IList methods -- override
//-----------------------------------------------
public override int Count {
get { return 2; }
}
public override QilNode this[int index] {
get {
switch (index) {
case 0: return this.left;
case 1: return this.right;
default: throw new IndexOutOfRangeException();
}
}
set {
switch (index) {
case 0: this.left = value; break;
case 1: this.right = value; break;
default: throw new IndexOutOfRangeException();
}
}
}
//-----------------------------------------------
// QilBinary methods
//-----------------------------------------------
public QilNode Left {
get { return this.left; }
set { this.left = 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
- CharUnicodeInfo.cs
- SchemaComplexType.cs
- XmlEntity.cs
- DictionaryBase.cs
- SqlMultiplexer.cs
- WindowsPen.cs
- XmlnsCompatibleWithAttribute.cs
- SettingsBindableAttribute.cs
- Merger.cs
- BrowserCapabilitiesFactoryBase.cs
- Identity.cs
- NCryptNative.cs
- Fonts.cs
- ExpressionWriter.cs
- RegisteredDisposeScript.cs
- SimplePropertyEntry.cs
- ZoneMembershipCondition.cs
- CfgArc.cs
- HttpAsyncResult.cs
- BindingGraph.cs
- ExpressionDumper.cs
- TokenizerHelper.cs
- HandledEventArgs.cs
- XmlQueryTypeFactory.cs
- InvalidContentTypeException.cs
- EngineSiteSapi.cs
- DataControlField.cs
- ReferencedAssembly.cs
- RegisteredScript.cs
- VisualBrush.cs
- ContentPresenter.cs
- DropDownList.cs
- EntityDataSourceValidationException.cs
- DataServiceHostWrapper.cs
- DataGridViewCellCollection.cs
- DataSourceCacheDurationConverter.cs
- TextTrailingWordEllipsis.cs
- PersonalizableAttribute.cs
- WebPartTracker.cs
- UntrustedRecipientException.cs
- TypedTableHandler.cs
- UnsafeNativeMethods.cs
- EventWaitHandle.cs
- RawKeyboardInputReport.cs
- SystemInfo.cs
- ConfigurationSchemaErrors.cs
- CollectionView.cs
- MediaScriptCommandRoutedEventArgs.cs
- EventMappingSettings.cs
- UIntPtr.cs
- PermissionSetTriple.cs
- WebDisplayNameAttribute.cs
- StateMachineDesignerPaint.cs
- BasicViewGenerator.cs
- BitVector32.cs
- WSIdentityFaultException.cs
- ThaiBuddhistCalendar.cs
- MetabaseServerConfig.cs
- WebPartDescriptionCollection.cs
- PeerNameRecord.cs
- CheckBoxPopupAdapter.cs
- WindowsIPAddress.cs
- AuthorizationSection.cs
- CounterCreationData.cs
- LateBoundBitmapDecoder.cs
- ImageAttributes.cs
- ValidatorCompatibilityHelper.cs
- WpfKnownMember.cs
- HandleCollector.cs
- StringResourceManager.cs
- ComboBoxDesigner.cs
- GraphicsPathIterator.cs
- UntypedNullExpression.cs
- StandardCommandToolStripMenuItem.cs
- ContextMarshalException.cs
- BindingBase.cs
- ApplicationCommands.cs
- WorkflowRuntimeServiceElement.cs
- StreamingContext.cs
- ApplicationContext.cs
- EnumConverter.cs
- DesignerVerbCollection.cs
- CompressEmulationStream.cs
- CodeSnippetTypeMember.cs
- TextBounds.cs
- ToolBarTray.cs
- CodeTypeMemberCollection.cs
- SqlProviderServices.cs
- AssociationTypeEmitter.cs
- FtpCachePolicyElement.cs
- XPathDocumentBuilder.cs
- HostSecurityManager.cs
- BindingValueChangedEventArgs.cs
- ADConnectionHelper.cs
- InitializationEventAttribute.cs
- WorkflowControlEndpoint.cs
- Attachment.cs
- BitmapScalingModeValidation.cs
- GC.cs
- BrowserDefinition.cs