Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilBinary.cs / 1305376 / 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
- ITextView.cs
- AsyncPostBackTrigger.cs
- XmlTextReaderImpl.cs
- MediaSystem.cs
- ThemeDirectoryCompiler.cs
- BatchParser.cs
- COM2ExtendedBrowsingHandler.cs
- DisplayNameAttribute.cs
- CommonRemoteMemoryBlock.cs
- ScriptingJsonSerializationSection.cs
- ExtentKey.cs
- RealProxy.cs
- CompilerTypeWithParams.cs
- IndexerNameAttribute.cs
- ISAPIRuntime.cs
- JsonDeserializer.cs
- XhtmlBasicPhoneCallAdapter.cs
- AttributeCollection.cs
- SamlAuthorityBinding.cs
- PolicyVersionConverter.cs
- SafeEventLogWriteHandle.cs
- ContentDisposition.cs
- CounterCreationData.cs
- QilPatternVisitor.cs
- HttpRequestCacheValidator.cs
- ResXResourceReader.cs
- HttpHandlerActionCollection.cs
- recordstate.cs
- ApplicationSettingsBase.cs
- SchemaElementDecl.cs
- OracleSqlParser.cs
- ProfilePropertySettingsCollection.cs
- HttpCapabilitiesBase.cs
- SourceElementsCollection.cs
- PersistenceTask.cs
- TextElementCollectionHelper.cs
- SimpleLine.cs
- Grid.cs
- RemotingSurrogateSelector.cs
- EditBehavior.cs
- TextEditorContextMenu.cs
- TableLayoutPanel.cs
- BaseParser.cs
- OraclePermissionAttribute.cs
- EventPropertyMap.cs
- CombinedTcpChannel.cs
- SchemaMapping.cs
- UInt32Converter.cs
- Rect3DValueSerializer.cs
- DefaultValueConverter.cs
- ClaimComparer.cs
- EntitySetRetriever.cs
- ExtenderProvidedPropertyAttribute.cs
- InputBinder.cs
- DataTableMapping.cs
- CodeTypeParameter.cs
- XmlSchemaAny.cs
- FastEncoderStatics.cs
- Utils.cs
- DirectoryObjectSecurity.cs
- GenerateScriptTypeAttribute.cs
- ServiceModelReg.cs
- Wildcard.cs
- DataProtection.cs
- ToolStripStatusLabel.cs
- SafeNativeMethods.cs
- basemetadatamappingvisitor.cs
- XmlCharCheckingWriter.cs
- ServiceAuthorizationManager.cs
- DoubleAnimationClockResource.cs
- LocatorPartList.cs
- CompositeDataBoundControl.cs
- TransactionTraceIdentifier.cs
- CookieParameter.cs
- ParseHttpDate.cs
- PtsHost.cs
- _AutoWebProxyScriptWrapper.cs
- GetFileNameResult.cs
- EventMappingSettings.cs
- TraceSection.cs
- ProfileBuildProvider.cs
- ImageConverter.cs
- Point3DCollectionConverter.cs
- EventToken.cs
- Rectangle.cs
- DataGridLinkButton.cs
- FormsAuthenticationCredentials.cs
- VectorAnimation.cs
- AdornerHitTestResult.cs
- RelationshipConverter.cs
- DesignerTransactionCloseEvent.cs
- UnSafeCharBuffer.cs
- Object.cs
- Debug.cs
- OutputCacheSettingsSection.cs
- XmlSignatureManifest.cs
- LocatorBase.cs
- ContactManager.cs
- mediaeventshelper.cs
- TypeConverterAttribute.cs