Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- AutoSizeComboBox.cs
- ProvidersHelper.cs
- PersonalizationStateInfo.cs
- OrderedEnumerableRowCollection.cs
- MetadataItem_Static.cs
- XmlSchemaSubstitutionGroup.cs
- HwndKeyboardInputProvider.cs
- ListViewItem.cs
- XMLDiffLoader.cs
- TaskHelper.cs
- PropertyConverter.cs
- UnionCqlBlock.cs
- FrameworkPropertyMetadata.cs
- SystemIPInterfaceProperties.cs
- AuthenticationSection.cs
- ScrollableControl.cs
- AdapterDictionary.cs
- EntryWrittenEventArgs.cs
- DataGridItemAutomationPeer.cs
- MediaElement.cs
- DateTimeFormatInfo.cs
- RequestUriProcessor.cs
- RegexReplacement.cs
- FontInfo.cs
- Expr.cs
- GridViewCancelEditEventArgs.cs
- DbQueryCommandTree.cs
- WebHttpEndpoint.cs
- DataGridViewColumnEventArgs.cs
- TCEAdapterGenerator.cs
- XmlDictionaryReaderQuotas.cs
- DataGridViewUtilities.cs
- WebPartExportVerb.cs
- InputElement.cs
- Exceptions.cs
- WebPartAuthorizationEventArgs.cs
- CacheModeConverter.cs
- SimpleWebHandlerParser.cs
- PerformanceCounterPermissionEntry.cs
- SqlParameter.cs
- HttpCookiesSection.cs
- LogRecordSequence.cs
- HttpFileCollectionWrapper.cs
- DataPager.cs
- ProfessionalColors.cs
- DataGridDetailsPresenter.cs
- Configuration.cs
- ExtensionQuery.cs
- TreeSet.cs
- DESCryptoServiceProvider.cs
- Ticks.cs
- XPathExpr.cs
- EncryptedPackageFilter.cs
- EntityKeyElement.cs
- Label.cs
- NativeMethodsCLR.cs
- DefaultPrintController.cs
- WorkflowRuntimeEndpoint.cs
- CompositeTypefaceMetrics.cs
- XmlValueConverter.cs
- Constraint.cs
- CodeArrayIndexerExpression.cs
- X509CertificateClaimSet.cs
- MessageHeaderDescription.cs
- SoapExtensionReflector.cs
- SymmetricKeyWrap.cs
- VsPropertyGrid.cs
- Geometry.cs
- TypedCompletedAsyncResult.cs
- NavigationHelper.cs
- TextSelectionHighlightLayer.cs
- WebPartManagerInternals.cs
- BitmapMetadataEnumerator.cs
- DbConnectionPoolCounters.cs
- ProtocolsSection.cs
- XmlnsPrefixAttribute.cs
- TdsValueSetter.cs
- XmlWrappingReader.cs
- InkCanvasAutomationPeer.cs
- XsdDuration.cs
- GlobalizationSection.cs
- SqlRecordBuffer.cs
- DefaultSerializationProviderAttribute.cs
- MatrixKeyFrameCollection.cs
- InternalTypeHelper.cs
- PropertyMapper.cs
- CacheAxisQuery.cs
- AppSettingsSection.cs
- CurrentChangingEventArgs.cs
- IdentityReference.cs
- KeysConverter.cs
- HelpEvent.cs
- HandlerBase.cs
- TextParentUndoUnit.cs
- Image.cs
- RecognizedAudio.cs
- AudienceUriMode.cs
- COM2PropertyDescriptor.cs
- SqlFacetAttribute.cs
- MarkerProperties.cs