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
- AssemblyNameEqualityComparer.cs
- BCLDebug.cs
- SoapSchemaExporter.cs
- TextServicesDisplayAttribute.cs
- TreeNodeBindingCollection.cs
- ParserContext.cs
- MailDefinition.cs
- PriorityItem.cs
- X509CertificateClaimSet.cs
- PropertyInfoSet.cs
- DockingAttribute.cs
- EventMappingSettings.cs
- TypeSystem.cs
- DbParameterCollection.cs
- EdmError.cs
- OracleConnectionString.cs
- SignerInfo.cs
- HybridWebProxyFinder.cs
- XsltArgumentList.cs
- SessionPageStatePersister.cs
- EmbeddedMailObject.cs
- MimeParameters.cs
- ThousandthOfEmRealDoubles.cs
- CleanUpVirtualizedItemEventArgs.cs
- PipelineModuleStepContainer.cs
- List.cs
- AttributeQuery.cs
- DataGridViewRowsAddedEventArgs.cs
- ProjectionCamera.cs
- RenderData.cs
- CodeAccessPermission.cs
- InplaceBitmapMetadataWriter.cs
- MouseDevice.cs
- ListView.cs
- HttpProfileGroupBase.cs
- ExpandCollapseProviderWrapper.cs
- DrawingGroup.cs
- FixedHighlight.cs
- Switch.cs
- ScrollViewer.cs
- TrackingParticipant.cs
- EntityDataSourceSelectingEventArgs.cs
- PropertyDescriptorCollection.cs
- OuterGlowBitmapEffect.cs
- DbInsertCommandTree.cs
- ProcessModuleCollection.cs
- WebControlAdapter.cs
- RegexTree.cs
- DropTarget.cs
- DataSourceControl.cs
- TextClipboardData.cs
- PreviousTrackingServiceAttribute.cs
- SoapMessage.cs
- SpellerInterop.cs
- BitmapSizeOptions.cs
- SQLDateTime.cs
- SQLByte.cs
- TypographyProperties.cs
- RequestResizeEvent.cs
- ServiceOperationParameter.cs
- PixelFormatConverter.cs
- AppDomainFactory.cs
- DataServiceQuery.cs
- CannotUnloadAppDomainException.cs
- TemplateBindingExpression.cs
- Int16Storage.cs
- Currency.cs
- CodeIndexerExpression.cs
- ModifiableIteratorCollection.cs
- TextRange.cs
- RegexMatch.cs
- RSAPKCS1SignatureDeformatter.cs
- ToolboxControl.cs
- XmlSchemaCompilationSettings.cs
- ZoneButton.cs
- ExternalFile.cs
- RemoteWebConfigurationHostStream.cs
- SmtpFailedRecipientsException.cs
- EdmType.cs
- XmlWrappingReader.cs
- ConstraintCollection.cs
- MenuItemCollectionEditorDialog.cs
- WebPartMenu.cs
- AnnotationHelper.cs
- ListSourceHelper.cs
- ProfileProvider.cs
- FilePrompt.cs
- XmlHierarchicalDataSourceView.cs
- IsolatedStoragePermission.cs
- OdbcConnection.cs
- ExtensibleClassFactory.cs
- TextRunCacheImp.cs
- AbandonedMutexException.cs
- SuppressMessageAttribute.cs
- FramingDecoders.cs
- ApplicationCommands.cs
- SecurityTokenAuthenticator.cs
- StackOverflowException.cs
- UInt16.cs
- XmlEnumAttribute.cs