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
- HostVisual.cs
- DateTimeConverter2.cs
- FaultDesigner.cs
- CollectionContainer.cs
- TransformerInfoCollection.cs
- UserInitiatedNavigationPermission.cs
- ScriptManager.cs
- ExplicitDiscriminatorMap.cs
- DataGridTablesFactory.cs
- OdbcConnectionFactory.cs
- DictionaryEntry.cs
- SmtpSection.cs
- ObjectMemberMapping.cs
- Material.cs
- MLangCodePageEncoding.cs
- Int64Animation.cs
- BatchServiceHost.cs
- ProjectionPlan.cs
- BlurBitmapEffect.cs
- XappLauncher.cs
- ButtonBase.cs
- SafePEFileHandle.cs
- XmlReader.cs
- BufferAllocator.cs
- ListSortDescription.cs
- DynamicValueConverter.cs
- XmlSerializerFactory.cs
- EventSetter.cs
- OleServicesContext.cs
- Tuple.cs
- GeometryModel3D.cs
- FlowNode.cs
- HttpHeaderCollection.cs
- TreeNodeMouseHoverEvent.cs
- HyperLinkColumn.cs
- HttpListener.cs
- CachedCompositeFamily.cs
- DiscreteKeyFrames.cs
- PreservationFileWriter.cs
- InputElement.cs
- ScaleTransform.cs
- CodeSnippetTypeMember.cs
- KeySpline.cs
- _HeaderInfo.cs
- CellLabel.cs
- CollectionBuilder.cs
- MachineSettingsSection.cs
- ParenthesizePropertyNameAttribute.cs
- LocalIdKeyIdentifierClause.cs
- IconBitmapDecoder.cs
- AddInStore.cs
- ClientOptions.cs
- ArcSegment.cs
- ScopelessEnumAttribute.cs
- IntMinMaxAggregationOperator.cs
- UICuesEvent.cs
- OdbcParameter.cs
- HttpChannelHelper.cs
- TreeNodeSelectionProcessor.cs
- templategroup.cs
- AuthenticationSection.cs
- EditorZoneBase.cs
- DataSourceControlBuilder.cs
- SpanIndex.cs
- DirectoryInfo.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- XsdDateTime.cs
- _SslSessionsCache.cs
- PtsHost.cs
- Update.cs
- SqlFactory.cs
- XmlMapping.cs
- UndirectedGraph.cs
- FontConverter.cs
- AssemblyCollection.cs
- SponsorHelper.cs
- DbSourceParameterCollection.cs
- ResolvedKeyFrameEntry.cs
- Animatable.cs
- ContentValidator.cs
- _HeaderInfoTable.cs
- SortExpressionBuilder.cs
- CompositeCollection.cs
- X509RawDataKeyIdentifierClause.cs
- QueryParameter.cs
- DesignTimeValidationFeature.cs
- Transactions.cs
- DragSelectionMessageFilter.cs
- While.cs
- ServiceSecurityAuditElement.cs
- SourceExpressionException.cs
- Size.cs
- SessionStateItemCollection.cs
- StartFileNameEditor.cs
- _BufferOffsetSize.cs
- FormViewModeEventArgs.cs
- DBDataPermission.cs
- WebSysDisplayNameAttribute.cs
- ToolBar.cs
- UrlMapping.cs