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
- UnmanagedHandle.cs
- WebPartMovingEventArgs.cs
- ToolbarAUtomationPeer.cs
- HatchBrush.cs
- EdmValidator.cs
- DataGridTextBoxColumn.cs
- ParameterToken.cs
- Command.cs
- OleDbException.cs
- EtwTrackingParticipant.cs
- DefaultPropertiesToSend.cs
- NavigatingCancelEventArgs.cs
- ReadOnlyDataSource.cs
- WSDualHttpSecurityElement.cs
- Token.cs
- AsynchronousChannel.cs
- AvtEvent.cs
- Pkcs7Recipient.cs
- StorageAssociationSetMapping.cs
- SafeRightsManagementHandle.cs
- LinqToSqlWrapper.cs
- SessionState.cs
- figurelengthconverter.cs
- ButtonBase.cs
- WebPartConnectionsEventArgs.cs
- TabletDevice.cs
- QuaternionAnimationBase.cs
- StateItem.cs
- PasswordBoxAutomationPeer.cs
- Documentation.cs
- NavigationExpr.cs
- VerificationException.cs
- EntityDesignerDataSourceView.cs
- SqlConnectionHelper.cs
- WinEventHandler.cs
- RotationValidation.cs
- HorizontalAlignConverter.cs
- InvalidOperationException.cs
- CodeSnippetCompileUnit.cs
- CroppedBitmap.cs
- BitmapVisualManager.cs
- SamlSecurityTokenAuthenticator.cs
- EnumerableCollectionView.cs
- DataGridViewCellValueEventArgs.cs
- LassoHelper.cs
- SmiRequestExecutor.cs
- SystemIPInterfaceStatistics.cs
- GregorianCalendarHelper.cs
- StyleCollectionEditor.cs
- CloudCollection.cs
- StorageInfo.cs
- MULTI_QI.cs
- DecimalAnimationUsingKeyFrames.cs
- util.cs
- Propagator.JoinPropagator.cs
- TraceContextRecord.cs
- ReliabilityContractAttribute.cs
- SystemGatewayIPAddressInformation.cs
- BamlRecordHelper.cs
- SerializationSectionGroup.cs
- Binding.cs
- WebException.cs
- TemplateControlBuildProvider.cs
- FontSizeConverter.cs
- InternalConfigRoot.cs
- TreeNodeCollection.cs
- DigestTraceRecordHelper.cs
- X509ImageLogo.cs
- FontWeights.cs
- AsyncContentLoadedEventArgs.cs
- StoreUtilities.cs
- BitmapScalingModeValidation.cs
- HttpHandlerAction.cs
- AnnotationComponentChooser.cs
- ListSurrogate.cs
- KnownTypesProvider.cs
- Double.cs
- NamedPermissionSet.cs
- FlagsAttribute.cs
- Quad.cs
- WizardDesigner.cs
- BulletedListDesigner.cs
- MimeObjectFactory.cs
- Guid.cs
- ClientTargetCollection.cs
- RoleService.cs
- PriorityRange.cs
- TypeUsage.cs
- FileFormatException.cs
- PersonalizationProviderCollection.cs
- RawMouseInputReport.cs
- StdValidatorsAndConverters.cs
- ExpressionBuilder.cs
- DynamicUpdateCommand.cs
- DomainLiteralReader.cs
- EntryPointNotFoundException.cs
- RuntimeHelpers.cs
- WindowsFormsDesignerOptionService.cs
- LeftCellWrapper.cs
- FirstMatchCodeGroup.cs