Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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 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
- PropertyGridDesigner.cs
- GridPatternIdentifiers.cs
- WsdlInspector.cs
- XamlToRtfWriter.cs
- TextHidden.cs
- XmlNotation.cs
- SetIterators.cs
- TreeIterators.cs
- SchemaNames.cs
- ListBox.cs
- ListMarkerLine.cs
- CheckBoxStandardAdapter.cs
- FontInfo.cs
- WebResourceUtil.cs
- XmlDictionaryString.cs
- Grid.cs
- IgnoreFileBuildProvider.cs
- WinInetCache.cs
- TextTreeTextBlock.cs
- AccessDataSourceView.cs
- ToolStripProgressBar.cs
- ComplexPropertyEntry.cs
- DataPagerField.cs
- Accessible.cs
- DiscriminatorMap.cs
- _WebProxyDataBuilder.cs
- Camera.cs
- BamlResourceContent.cs
- SystemResourceKey.cs
- SizeAnimationClockResource.cs
- MetadataCacheItem.cs
- CheckBox.cs
- SessionStateModule.cs
- SqlUDTStorage.cs
- DiscreteKeyFrames.cs
- DataErrorValidationRule.cs
- ForEachAction.cs
- SmtpAuthenticationManager.cs
- FileUtil.cs
- ObjectSpanRewriter.cs
- SqlWorkflowInstanceStore.cs
- MonthCalendar.cs
- PrintDocument.cs
- SymbolType.cs
- GridViewSortEventArgs.cs
- ViewSimplifier.cs
- recordstatefactory.cs
- LinqDataSourceDeleteEventArgs.cs
- SigningProgress.cs
- DataControlFieldCell.cs
- SmtpReplyReader.cs
- SqlServer2KCompatibilityCheck.cs
- DataReaderContainer.cs
- SqlDataSourceView.cs
- TdsEnums.cs
- LabelEditEvent.cs
- MaskedTextBoxDesignerActionList.cs
- ObfuscationAttribute.cs
- IMembershipProvider.cs
- BlockCollection.cs
- SQLUtility.cs
- SoapIncludeAttribute.cs
- Trigger.cs
- PointCollection.cs
- XmlSerializerFactory.cs
- SiteMapPath.cs
- KeyNotFoundException.cs
- CodeChecksumPragma.cs
- AnnouncementClient.cs
- VisualStates.cs
- GridViewRow.cs
- UserControlParser.cs
- DefaultValueAttribute.cs
- HtmlButton.cs
- Encoder.cs
- PartEditor.cs
- XomlCompilerHelpers.cs
- WindowsTab.cs
- AnnotationAuthorChangedEventArgs.cs
- RadioButton.cs
- ArraySortHelper.cs
- FragmentQueryProcessor.cs
- SafeCryptHandles.cs
- Convert.cs
- GenericIdentity.cs
- PointConverter.cs
- Label.cs
- DataControlImageButton.cs
- PolyLineSegment.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Emitter.cs
- ArrayList.cs
- OracleConnectionString.cs
- IntranetCredentialPolicy.cs
- Section.cs
- DefaultBindingPropertyAttribute.cs
- StreamMarshaler.cs
- CustomErrorCollection.cs
- BrowserCapabilitiesFactoryBase.cs
- PeerNeighborManager.cs