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
- Error.cs
- _HelperAsyncResults.cs
- MarkupCompilePass1.cs
- StringStorage.cs
- RectangleHotSpot.cs
- SourceItem.cs
- GB18030Encoding.cs
- FormatterServices.cs
- SQLInt16Storage.cs
- FlowDocument.cs
- WindowsAltTab.cs
- SamlSubject.cs
- NonVisualControlAttribute.cs
- RTLAwareMessageBox.cs
- brushes.cs
- Ticks.cs
- TransportConfigurationTypeElementCollection.cs
- Query.cs
- TextTreeText.cs
- MemoryRecordBuffer.cs
- EntityParameter.cs
- NotificationContext.cs
- ApplicationManager.cs
- CryptoStream.cs
- TabItem.cs
- ToolStripLabel.cs
- WinFormsComponentEditor.cs
- Error.cs
- MaterialGroup.cs
- serverconfig.cs
- Comparer.cs
- TagMapCollection.cs
- OleDbParameterCollection.cs
- RecordManager.cs
- XmlImplementation.cs
- ConfigXmlDocument.cs
- ReachPrintTicketSerializerAsync.cs
- OdbcReferenceCollection.cs
- C14NUtil.cs
- FileAuthorizationModule.cs
- CroppedBitmap.cs
- EventLogEntry.cs
- KeyConverter.cs
- StaticSiteMapProvider.cs
- XmlNamespaceManager.cs
- DynamicValueConverter.cs
- ConfigurationErrorsException.cs
- PropertyInfoSet.cs
- SurrogateSelector.cs
- Stroke.cs
- WebPartUtil.cs
- AttributeProviderAttribute.cs
- Rijndael.cs
- ComplexTypeEmitter.cs
- TypeUsage.cs
- LicenseManager.cs
- StylusPlugin.cs
- SegmentTree.cs
- DataGridToolTip.cs
- EncryptedKeyIdentifierClause.cs
- DetectRunnableInstancesTask.cs
- DispatchRuntime.cs
- ClientConfigPaths.cs
- LastQueryOperator.cs
- TransformPattern.cs
- DebugView.cs
- Utils.cs
- CommandManager.cs
- TableCellCollection.cs
- WizardStepCollectionEditor.cs
- ScriptMethodAttribute.cs
- Environment.cs
- MinMaxParagraphWidth.cs
- PassportAuthentication.cs
- InvalidCastException.cs
- AutoGeneratedField.cs
- ProjectedSlot.cs
- PersonalizationState.cs
- ObjectPersistData.cs
- CodeSnippetExpression.cs
- XmlnsDefinitionAttribute.cs
- OAVariantLib.cs
- PathSegmentCollection.cs
- HexParser.cs
- XmlSchemaSimpleContentRestriction.cs
- IItemContainerGenerator.cs
- PerformanceCounterPermission.cs
- Scripts.cs
- PointAnimationUsingPath.cs
- PipelineModuleStepContainer.cs
- ModelTreeManager.cs
- SyndicationElementExtension.cs
- DPTypeDescriptorContext.cs
- TransformConverter.cs
- KeyGesture.cs
- ClientApiGenerator.cs
- DragDropHelper.cs
- UpdatePanelTrigger.cs
- SyndicationDeserializer.cs
- TextBox.cs