Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DispatcherSynchronizationContext.cs
- TextSegment.cs
- HttpContext.cs
- WizardForm.cs
- ApplicationId.cs
- ConvertEvent.cs
- MemoryFailPoint.cs
- Enum.cs
- WebSysDescriptionAttribute.cs
- CacheMemory.cs
- HealthMonitoringSection.cs
- XslAstAnalyzer.cs
- Soap.cs
- DataKey.cs
- Deflater.cs
- PostBackOptions.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- ToolStripPanelCell.cs
- EnumType.cs
- WebPageTraceListener.cs
- EntityCollection.cs
- FontWeights.cs
- StartUpEventArgs.cs
- CheckBoxDesigner.cs
- BinaryUtilClasses.cs
- RemoteWebConfigurationHost.cs
- Base64Decoder.cs
- Completion.cs
- ConditionedDesigner.cs
- GlobalizationAssembly.cs
- FixedSOMTextRun.cs
- FixedSOMElement.cs
- VirtualPathUtility.cs
- SystemDiagnosticsSection.cs
- DescendantQuery.cs
- PropertyGroupDescription.cs
- ReferenceConverter.cs
- PagerSettings.cs
- PointCollectionValueSerializer.cs
- PreservationFileWriter.cs
- PageAsyncTaskManager.cs
- Pair.cs
- HttpPostedFile.cs
- SqlMethodAttribute.cs
- SqlDataSourceStatusEventArgs.cs
- SqlInternalConnectionSmi.cs
- ApplicationDirectoryMembershipCondition.cs
- BindingMAnagerBase.cs
- LabelInfo.cs
- PopupControlService.cs
- NullableBoolConverter.cs
- Latin1Encoding.cs
- MailWriter.cs
- isolationinterop.cs
- PropertyEntry.cs
- FileSystemWatcher.cs
- OleStrCAMarshaler.cs
- ReversePositionQuery.cs
- SerializationInfoEnumerator.cs
- DBConnectionString.cs
- BrowsableAttribute.cs
- VectorCollectionValueSerializer.cs
- ScrollChangedEventArgs.cs
- Label.cs
- ScrollData.cs
- JavaScriptSerializer.cs
- XmlIncludeAttribute.cs
- DataGridViewCellValidatingEventArgs.cs
- DataViewSettingCollection.cs
- GridViewRowPresenter.cs
- DesignerSerializationOptionsAttribute.cs
- BindingExpression.cs
- ReplacementText.cs
- UserControl.cs
- RuntimeEnvironment.cs
- QilInvokeLateBound.cs
- RoleServiceManager.cs
- NumberSubstitution.cs
- EventLogPermissionEntry.cs
- NameTable.cs
- SqlAggregateChecker.cs
- ResetableIterator.cs
- DbConnectionOptions.cs
- ProxyFragment.cs
- AspNetCompatibilityRequirementsAttribute.cs
- xml.cs
- ThumbButtonInfoCollection.cs
- DocumentPageHost.cs
- HeaderedItemsControl.cs
- TransformPattern.cs
- DataGridViewColumn.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- HttpRawResponse.cs
- ContractListAdapter.cs
- SecurityDocument.cs
- BasicAsyncResult.cs
- PropertiesTab.cs
- XamlReader.cs
- QuaternionKeyFrameCollection.cs
- Tag.cs