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
- Light.cs
- XmlILIndex.cs
- CallContext.cs
- Parallel.cs
- DynamicFilterExpression.cs
- ProtocolImporter.cs
- EntityDataSourceValidationException.cs
- SHA512Managed.cs
- IPHostEntry.cs
- HtmlImage.cs
- SymDocumentType.cs
- LocalizableAttribute.cs
- SynchronizationContext.cs
- NamedPermissionSet.cs
- ByValueEqualityComparer.cs
- CoreSwitches.cs
- RectIndependentAnimationStorage.cs
- PermissionToken.cs
- SqlProfileProvider.cs
- VirtualPathProvider.cs
- XmlObjectSerializerWriteContextComplex.cs
- Token.cs
- HttpAsyncResult.cs
- SafeHandles.cs
- Cursors.cs
- FormViewAutoFormat.cs
- DateTimeFormat.cs
- SqlTransaction.cs
- MembershipSection.cs
- BitmapMetadataEnumerator.cs
- DesignerForm.cs
- SchemaMerger.cs
- dsa.cs
- SimpleTableProvider.cs
- NamedPipeProcessProtocolHandler.cs
- Win32Exception.cs
- File.cs
- Icon.cs
- MenuItemStyle.cs
- InternalMappingException.cs
- _NtlmClient.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- Animatable.cs
- NestPullup.cs
- OdbcUtils.cs
- StyleXamlParser.cs
- CqlLexerHelpers.cs
- PositiveTimeSpanValidator.cs
- TimeSpanStorage.cs
- MLangCodePageEncoding.cs
- TimeSpan.cs
- WindowShowOrOpenTracker.cs
- ContentElementCollection.cs
- EventRoute.cs
- OleStrCAMarshaler.cs
- DataGridViewCell.cs
- CompoundFileIOPermission.cs
- TableRowCollection.cs
- DataControlFieldHeaderCell.cs
- DisplayInformation.cs
- MatrixUtil.cs
- PaperSize.cs
- OleDbConnectionInternal.cs
- EdmScalarPropertyAttribute.cs
- InvalidWMPVersionException.cs
- ThemeableAttribute.cs
- JournalEntry.cs
- TextTreeExtractElementUndoUnit.cs
- _NestedSingleAsyncResult.cs
- ArgumentException.cs
- InstalledFontCollection.cs
- dataobject.cs
- PathSegment.cs
- TreePrinter.cs
- OleDbConnectionInternal.cs
- CallbackValidator.cs
- CompiledAction.cs
- MulticastDelegate.cs
- KeySplineConverter.cs
- TableParaClient.cs
- ReadOnlyPropertyMetadata.cs
- XmlSchemaFacet.cs
- Graph.cs
- HttpCacheVary.cs
- DbParameterHelper.cs
- SoapAttributes.cs
- ExplicitDiscriminatorMap.cs
- VirtualPathProvider.cs
- UpdatePanelControlTrigger.cs
- PropertyExpression.cs
- FixedDocumentSequencePaginator.cs
- ProfilePropertyNameValidator.cs
- OletxTransactionManager.cs
- DefaultHttpHandler.cs
- _Win32.cs
- UInt16Storage.cs
- RawKeyboardInputReport.cs
- MessageHeaderDescription.cs
- LiteralControl.cs
- TableRowCollection.cs