Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilTernary.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GeometryCollection.cs
- SQlBooleanStorage.cs
- CngProvider.cs
- cryptoapiTransform.cs
- CurrencyManager.cs
- ReflectionServiceProvider.cs
- ObfuscationAttribute.cs
- QueueProcessor.cs
- CodeAssignStatement.cs
- TemplateColumn.cs
- WpfKnownTypeInvoker.cs
- SecurityDescriptor.cs
- ShaderRenderModeValidation.cs
- ByValueEqualityComparer.cs
- ResourceDictionaryCollection.cs
- QueryableDataSource.cs
- MonitoringDescriptionAttribute.cs
- WindowsTreeView.cs
- CompiledRegexRunnerFactory.cs
- ArraySet.cs
- QilXmlWriter.cs
- BuildProvidersCompiler.cs
- ScriptRegistrationManager.cs
- WebPartConnectionsCancelVerb.cs
- TextParagraph.cs
- TextEffectCollection.cs
- ParserStreamGeometryContext.cs
- SamlAdvice.cs
- UnsafeNativeMethods.cs
- ValueHandle.cs
- sqlstateclientmanager.cs
- AuthorizationRule.cs
- VisualTransition.cs
- EmitterCache.cs
- TimeIntervalCollection.cs
- KeyGestureConverter.cs
- TreeNodeCollection.cs
- MimeWriter.cs
- MatrixTransform.cs
- Internal.cs
- XmlIlVisitor.cs
- EventRouteFactory.cs
- CTreeGenerator.cs
- SerTrace.cs
- ServiceInstallComponent.cs
- CalendarDesigner.cs
- DateTimeFormat.cs
- StateRuntime.cs
- BoundField.cs
- _Connection.cs
- EditorPartCollection.cs
- TrustLevelCollection.cs
- Subordinate.cs
- _NegotiateClient.cs
- PrimarySelectionAdorner.cs
- TextBox.cs
- IChannel.cs
- SqlTypeConverter.cs
- TreePrinter.cs
- IfElseDesigner.xaml.cs
- StringWriter.cs
- SizeLimitedCache.cs
- WebPartZoneCollection.cs
- BitmapCache.cs
- LocalIdCollection.cs
- ClientRoleProvider.cs
- HttpCookie.cs
- TranslateTransform3D.cs
- HtmlTextArea.cs
- SignatureDescription.cs
- LayoutTable.cs
- TextShapeableCharacters.cs
- OdbcStatementHandle.cs
- SynchronizedCollection.cs
- Int16Animation.cs
- ContextMenuStrip.cs
- EntityDataSourceStatementEditorForm.cs
- DefaultIfEmptyQueryOperator.cs
- ListViewItemMouseHoverEvent.cs
- SetIndexBinder.cs
- SessionStateItemCollection.cs
- TextRangeBase.cs
- BufferBuilder.cs
- PhysicalFontFamily.cs
- AddInServer.cs
- EnumValAlphaComparer.cs
- RowsCopiedEventArgs.cs
- SqlXmlStorage.cs
- DataGridViewCellCancelEventArgs.cs
- StructuredTypeEmitter.cs
- Margins.cs
- FrameDimension.cs
- OraclePermissionAttribute.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ToolStripSplitButton.cs
- DesignerAutoFormat.cs
- LogWriteRestartAreaState.cs
- PageContentAsyncResult.cs
- IEnumerable.cs
- TypeConverterHelper.cs