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 / QilTernary.cs / 1 / QilTernary.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 three children. /// ////// Don't construct QIL nodes directly; instead, use the internal class QilTernary : QilNode { private QilNode left, center, right; //----------------------------------------------- // Constructor //----------------------------------------------- ///QilFactory . ////// Construct a new node /// public QilTernary(QilNodeType nodeType, QilNode left, QilNode center, QilNode right) : base(nodeType) { this.left = left; this.center = center; this.right = right; } //----------------------------------------------- // IListmethods -- override //----------------------------------------------- public override int Count { get { return 3; } } public override QilNode this[int index] { get { switch (index) { case 0: return this.left; case 1: return this.center; case 2: return this.right; default: throw new IndexOutOfRangeException(); } } set { switch (index) { case 0: this.left = value; break; case 1: this.center = value; break; case 2: this.right = value; break; default: throw new IndexOutOfRangeException(); } } } //----------------------------------------------- // QilTernary methods //----------------------------------------------- public QilNode Left { get { return this.left; } set { this.left = value; } } public QilNode Center { get { return this.center; } set { this.center = 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 three children. /// ////// Don't construct QIL nodes directly; instead, use the internal class QilTernary : QilNode { private QilNode left, center, right; //----------------------------------------------- // Constructor //----------------------------------------------- ///QilFactory . ////// Construct a new node /// public QilTernary(QilNodeType nodeType, QilNode left, QilNode center, QilNode right) : base(nodeType) { this.left = left; this.center = center; this.right = right; } //----------------------------------------------- // IListmethods -- override //----------------------------------------------- public override int Count { get { return 3; } } public override QilNode this[int index] { get { switch (index) { case 0: return this.left; case 1: return this.center; case 2: return this.right; default: throw new IndexOutOfRangeException(); } } set { switch (index) { case 0: this.left = value; break; case 1: this.center = value; break; case 2: this.right = value; break; default: throw new IndexOutOfRangeException(); } } } //----------------------------------------------- // QilTernary methods //----------------------------------------------- public QilNode Left { get { return this.left; } set { this.left = value; } } public QilNode Center { get { return this.center; } set { this.center = 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
- CacheAxisQuery.cs
- RuntimeWrappedException.cs
- CssClassPropertyAttribute.cs
- TextBoxAutoCompleteSourceConverter.cs
- BuildProviderCollection.cs
- Ticks.cs
- DispatchRuntime.cs
- SamlSecurityTokenAuthenticator.cs
- HttpTransportElement.cs
- PatternMatcher.cs
- DbDataReader.cs
- InkCanvasSelectionAdorner.cs
- WebMethodAttribute.cs
- EdmItemError.cs
- SystemColors.cs
- ImplicitInputBrush.cs
- RadioButton.cs
- RoleManagerModule.cs
- DataConnectionHelper.cs
- Keywords.cs
- HelpKeywordAttribute.cs
- PathGradientBrush.cs
- ResolveMatches11.cs
- Content.cs
- SQLBytesStorage.cs
- StickyNote.cs
- Attributes.cs
- XmlSchemaAttribute.cs
- SqlClientPermission.cs
- DmlSqlGenerator.cs
- PropertyExpression.cs
- NativeMethods.cs
- RegisteredArrayDeclaration.cs
- ToolStripInSituService.cs
- SecurityContextCookieSerializer.cs
- QueryCreatedEventArgs.cs
- FragmentNavigationEventArgs.cs
- DataSourceViewSchemaConverter.cs
- QilValidationVisitor.cs
- SynchronizedPool.cs
- ComMethodElementCollection.cs
- SectionUpdates.cs
- CultureInfo.cs
- SafeProcessHandle.cs
- DataGridViewHitTestInfo.cs
- InputProcessorProfilesLoader.cs
- JpegBitmapEncoder.cs
- StandardOleMarshalObject.cs
- CornerRadiusConverter.cs
- XmlSchemaException.cs
- DataGridViewCellLinkedList.cs
- AbsoluteQuery.cs
- TagMapCollection.cs
- ELinqQueryState.cs
- FormViewModeEventArgs.cs
- MultipleViewPatternIdentifiers.cs
- TextRenderer.cs
- DateTimeConverter.cs
- DataGridTextBoxColumn.cs
- SelectionChangedEventArgs.cs
- HtmlControlPersistable.cs
- OleDbEnumerator.cs
- indexingfiltermarshaler.cs
- ViewKeyConstraint.cs
- ValidationSummary.cs
- TypeUtils.cs
- WebPartDisplayModeCancelEventArgs.cs
- PreProcessor.cs
- Pkcs7Signer.cs
- FamilyTypefaceCollection.cs
- Operators.cs
- OpenTypeCommon.cs
- ExchangeUtilities.cs
- HttpGetClientProtocol.cs
- _NativeSSPI.cs
- ReadOnlyDataSourceView.cs
- WhitespaceSignificantCollectionAttribute.cs
- smtpconnection.cs
- DeobfuscatingStream.cs
- ThaiBuddhistCalendar.cs
- ChannelParameterCollection.cs
- UriScheme.cs
- RemotingClientProxy.cs
- SmiRecordBuffer.cs
- BinaryQueryOperator.cs
- HtmlForm.cs
- DataBindingCollection.cs
- ArgumentsParser.cs
- Track.cs
- SharedStatics.cs
- ToolStripManager.cs
- WsdlParser.cs
- BinaryCommonClasses.cs
- ComplexLine.cs
- X509Utils.cs
- PrintDialog.cs
- NetSectionGroup.cs
- Process.cs
- GZipDecoder.cs
- MultipleViewPatternIdentifiers.cs