Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilBinary.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MainMenu.cs
- ReliableMessagingHelpers.cs
- Accessors.cs
- TrailingSpaceComparer.cs
- DocumentViewerBase.cs
- Part.cs
- filewebrequest.cs
- KnownColorTable.cs
- AppSettingsExpressionEditor.cs
- StateWorkerRequest.cs
- DataTemplateKey.cs
- DispatcherFrame.cs
- BaseTemplateCodeDomTreeGenerator.cs
- SafeIUnknown.cs
- EncryptedPackage.cs
- DocumentApplicationJournalEntry.cs
- UnknownWrapper.cs
- InkCanvasInnerCanvas.cs
- BuildProviderUtils.cs
- ScriptBehaviorDescriptor.cs
- DesignerAttribute.cs
- MailBnfHelper.cs
- ToolStripSeparatorRenderEventArgs.cs
- PropertyMetadata.cs
- SqlDataSourceQuery.cs
- isolationinterop.cs
- XmlNavigatorFilter.cs
- SQLDateTimeStorage.cs
- OperationResponse.cs
- XmlSchemaIdentityConstraint.cs
- Graph.cs
- ToolStripItemClickedEventArgs.cs
- DataContractSerializerSection.cs
- BridgeDataRecord.cs
- BitmapEffectrendercontext.cs
- DesignerEventService.cs
- MessageFilterTable.cs
- PathFigure.cs
- MarkupCompilePass1.cs
- MessageBox.cs
- DataColumnChangeEvent.cs
- WorkflowInstanceExtensionCollection.cs
- ObjectSpanRewriter.cs
- EventPrivateKey.cs
- ButtonColumn.cs
- TcpClientSocketManager.cs
- XmlSerializableWriter.cs
- TrackingProfileCache.cs
- ObjectQueryProvider.cs
- ReadonlyMessageFilter.cs
- DeleteMemberBinder.cs
- Oid.cs
- BrushMappingModeValidation.cs
- HttpRequestBase.cs
- SettingsPropertyValue.cs
- CaseInsensitiveComparer.cs
- Privilege.cs
- PriorityRange.cs
- UserControl.cs
- UnionExpr.cs
- ProxyWebPartManager.cs
- QueryParameter.cs
- AssemblyCollection.cs
- XamlTemplateSerializer.cs
- Interop.cs
- HMACSHA1.cs
- SoapHeaders.cs
- Evaluator.cs
- EntityDescriptor.cs
- WebPartConnectionsCloseVerb.cs
- RegisteredDisposeScript.cs
- ItemCollection.cs
- DashStyles.cs
- FixedSOMImage.cs
- SmtpReplyReaderFactory.cs
- HtmlInputSubmit.cs
- TextParagraphCache.cs
- SvcMapFileSerializer.cs
- DeferredElementTreeState.cs
- KeyboardEventArgs.cs
- TextSchema.cs
- SQLGuidStorage.cs
- ListChangedEventArgs.cs
- PackageDigitalSignatureManager.cs
- SqlParameterCollection.cs
- CommonDialog.cs
- InputLanguageManager.cs
- FormatSettings.cs
- FtpWebResponse.cs
- SelectedGridItemChangedEvent.cs
- CompositeCollection.cs
- WindowsRichEdit.cs
- HostingEnvironment.cs
- HttpRequestCacheValidator.cs
- LazyTextWriterCreator.cs
- UserPreferenceChangedEventArgs.cs
- InputMethodStateTypeInfo.cs
- SqlXmlStorage.cs
- EditorServiceContext.cs
- TargetParameterCountException.cs