Code:
/ 4.0 / 4.0 / 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 internal class QilBinary : QilNode { private QilNode left, right; //----------------------------------------------- // Constructor //----------------------------------------------- ///QilFactory . ////// Construct a new node /// public QilBinary(QilNodeType nodeType, QilNode left, QilNode right) : base(nodeType) { this.left = left; this.right = right; } //----------------------------------------------- // IListmethods -- 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 internal class QilBinary : QilNode { private QilNode left, right; //----------------------------------------------- // Constructor //----------------------------------------------- ///QilFactory . ////// Construct a new node /// public QilBinary(QilNodeType nodeType, QilNode left, QilNode right) : base(nodeType) { this.left = left; this.right = right; } //----------------------------------------------- // IListmethods -- 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
- NullableIntMinMaxAggregationOperator.cs
- ComponentResourceManager.cs
- StorageFunctionMapping.cs
- SrgsNameValueTag.cs
- ContentTextAutomationPeer.cs
- ParentUndoUnit.cs
- TargetControlTypeCache.cs
- Int64AnimationBase.cs
- XPathScanner.cs
- Code.cs
- CheckableControlBaseAdapter.cs
- WebPartEditorApplyVerb.cs
- ScriptResourceInfo.cs
- DbParameterCollectionHelper.cs
- ConfigurationSectionCollection.cs
- SqlConnection.cs
- PrimaryKeyTypeConverter.cs
- ManipulationDelta.cs
- ManagementEventArgs.cs
- NameValueSectionHandler.cs
- DataStorage.cs
- MonitoringDescriptionAttribute.cs
- Padding.cs
- GZipStream.cs
- DataRowExtensions.cs
- HttpModulesSection.cs
- TransactionBridge.cs
- RelationshipDetailsCollection.cs
- XmlSchemaSimpleType.cs
- ExpressionHelper.cs
- ReturnType.cs
- ComponentCollection.cs
- CreateUserWizard.cs
- GenericPrincipal.cs
- ProtectedConfiguration.cs
- ClientTargetSection.cs
- WebPartCancelEventArgs.cs
- mactripleDES.cs
- CollectionExtensions.cs
- MessageDecoder.cs
- CompiledELinqQueryState.cs
- PerfProviderCollection.cs
- Menu.cs
- LinqDataSourceEditData.cs
- ComboBoxItem.cs
- RangeBaseAutomationPeer.cs
- XmlExpressionDumper.cs
- AddToCollection.cs
- QueryResultOp.cs
- MemberRestriction.cs
- UnsafeNativeMethods.cs
- Visitors.cs
- ChildrenQuery.cs
- XmlSchemaAppInfo.cs
- followingquery.cs
- FigureHelper.cs
- Executor.cs
- Serializer.cs
- PlaceHolder.cs
- NetworkInformationException.cs
- EdmRelationshipRoleAttribute.cs
- RightsManagementErrorHandler.cs
- ColorTypeConverter.cs
- TimelineGroup.cs
- BooleanStorage.cs
- JumpList.cs
- OdbcHandle.cs
- ComponentChangedEvent.cs
- MemberPath.cs
- ValidatingPropertiesEventArgs.cs
- SqlDataSourceTableQuery.cs
- ImageDesigner.cs
- PathGeometry.cs
- PointKeyFrameCollection.cs
- WebSysDescriptionAttribute.cs
- ClientBuildManager.cs
- SimpleExpression.cs
- QilBinary.cs
- WorkflowRuntimeServiceElementCollection.cs
- TreeNodeBindingCollection.cs
- WebPartConnection.cs
- WebPartDeleteVerb.cs
- ResXBuildProvider.cs
- DBConnection.cs
- DataGridViewCellConverter.cs
- DataGridPagerStyle.cs
- HttpRequestCacheValidator.cs
- HttpsTransportBindingElement.cs
- SchemaSetCompiler.cs
- ImportDesigner.xaml.cs
- JapaneseLunisolarCalendar.cs
- assemblycache.cs
- XmlAnyAttributeAttribute.cs
- Application.cs
- ConstructorExpr.cs
- AggregateNode.cs
- Publisher.cs
- OdbcFactory.cs
- CurrencyWrapper.cs
- SelectionListComponentEditor.cs