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
- SamlDelegatingWriter.cs
- HMACSHA384.cs
- AuthenticationManager.cs
- FieldAccessException.cs
- AspCompat.cs
- XmlSchemaAppInfo.cs
- XmlDataCollection.cs
- DateTimeUtil.cs
- PointConverter.cs
- HttpListener.cs
- ZipPackagePart.cs
- ExpanderAutomationPeer.cs
- Receive.cs
- PolyQuadraticBezierSegment.cs
- MergeFilterQuery.cs
- SecurityAlgorithmSuiteConverter.cs
- Int16.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ReflectionUtil.cs
- ProfileGroupSettingsCollection.cs
- BufferBuilder.cs
- IncrementalReadDecoders.cs
- WmlImageAdapter.cs
- BaseHashHelper.cs
- CheckBoxRenderer.cs
- HttpBrowserCapabilitiesWrapper.cs
- Run.cs
- ListMarkerLine.cs
- DefaultProxySection.cs
- AssemblyBuilderData.cs
- TrustLevel.cs
- GridToolTip.cs
- BinaryObjectWriter.cs
- BufferModeSettings.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- BufferBuilder.cs
- ReadOnlyTernaryTree.cs
- CapabilitiesAssignment.cs
- DescendentsWalker.cs
- SafeNativeMethods.cs
- TabItemWrapperAutomationPeer.cs
- ValueType.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- EventWaitHandle.cs
- UnsafeNativeMethods.cs
- DbReferenceCollection.cs
- SubMenuStyleCollection.cs
- CodeGroup.cs
- RegexTree.cs
- CharacterHit.cs
- BaseCollection.cs
- MouseButton.cs
- Padding.cs
- SemanticTag.cs
- HttpAsyncResult.cs
- MediaSystem.cs
- Animatable.cs
- PerformanceCounterManager.cs
- SkinIDTypeConverter.cs
- Font.cs
- SqlDuplicator.cs
- AmbiguousMatchException.cs
- RedistVersionInfo.cs
- QueryGenerator.cs
- ListViewCancelEventArgs.cs
- WinEventTracker.cs
- ViewEventArgs.cs
- SendKeys.cs
- ToolboxComponentsCreatingEventArgs.cs
- ToolStripMenuItem.cs
- SqlDataSourceSummaryPanel.cs
- EarlyBoundInfo.cs
- DateTimePicker.cs
- ServicePrincipalNameElement.cs
- TextEditorThreadLocalStore.cs
- SqlConnection.cs
- HoistedLocals.cs
- FileEnumerator.cs
- RemoteDebugger.cs
- ColorIndependentAnimationStorage.cs
- CharEntityEncoderFallback.cs
- TypeInitializationException.cs
- ColorTranslator.cs
- MarkupExtensionParser.cs
- ListDictionaryInternal.cs
- BindingExpressionBase.cs
- VersionedStreamOwner.cs
- FileReservationCollection.cs
- RoleGroup.cs
- XmlILIndex.cs
- Buffer.cs
- DrawingContextDrawingContextWalker.cs
- ContextDataSourceView.cs
- XmlElementList.cs
- TabRenderer.cs
- ColumnWidthChangedEvent.cs
- Emitter.cs
- OperatorExpressions.cs
- TriggerActionCollection.cs
- SchemaTableColumn.cs