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
- tooltip.cs
- ObjectStateFormatter.cs
- AsmxEndpointPickerExtension.cs
- ProviderCollection.cs
- CqlLexer.cs
- ConfigXmlDocument.cs
- GridViewDeleteEventArgs.cs
- HostingPreferredMapPath.cs
- StylusLogic.cs
- NonClientArea.cs
- DrawingVisual.cs
- ToolBarTray.cs
- ObjectTypeMapping.cs
- DbModificationCommandTree.cs
- TimeSpanMinutesConverter.cs
- DependencyProperty.cs
- EmissiveMaterial.cs
- DependencyObjectType.cs
- RegexCompilationInfo.cs
- Int16.cs
- SAPICategories.cs
- ObjectManager.cs
- ConstantSlot.cs
- KeyValuePairs.cs
- ActionItem.cs
- CodeDomConfigurationHandler.cs
- ConsoleKeyInfo.cs
- BitmapEffectInput.cs
- IndexedEnumerable.cs
- ExpressionBindings.cs
- SplineKeyFrames.cs
- PerfService.cs
- TableCell.cs
- HttpApplicationFactory.cs
- BypassElementCollection.cs
- Transform.cs
- StaticExtension.cs
- BoolExpressionVisitors.cs
- TimeSpanSecondsConverter.cs
- HtmlInputText.cs
- ConfigurationValidatorBase.cs
- DataStorage.cs
- SectionXmlInfo.cs
- TypeConverters.cs
- WarningException.cs
- RegisteredExpandoAttribute.cs
- OracleRowUpdatedEventArgs.cs
- ProviderCollection.cs
- ByteKeyFrameCollection.cs
- RestHandlerFactory.cs
- BamlResourceContent.cs
- NotFiniteNumberException.cs
- ConnectionProviderAttribute.cs
- _LazyAsyncResult.cs
- PerformanceCounterPermissionEntry.cs
- MetadataItemEmitter.cs
- HtmlInputRadioButton.cs
- OdbcConnectionString.cs
- QilList.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- MenuItem.cs
- QuadraticBezierSegment.cs
- Compiler.cs
- CollectionViewGroupInternal.cs
- ServiceModelSecurityTokenRequirement.cs
- AsnEncodedData.cs
- LOSFormatter.cs
- LogConverter.cs
- RegionIterator.cs
- ValueProviderWrapper.cs
- ControlBuilderAttribute.cs
- ToolStripHighContrastRenderer.cs
- OleDbDataAdapter.cs
- BamlRecordReader.cs
- GeneralTransformGroup.cs
- DragCompletedEventArgs.cs
- Exception.cs
- RightsManagementPermission.cs
- DynamicRenderer.cs
- CodeTypeDeclaration.cs
- StickyNoteHelper.cs
- RetrieveVirtualItemEventArgs.cs
- UserNamePasswordValidator.cs
- DataService.cs
- AuthenticationModuleElementCollection.cs
- cookieexception.cs
- RootDesignerSerializerAttribute.cs
- InvalidOperationException.cs
- DetailsViewDeleteEventArgs.cs
- ObjectViewEntityCollectionData.cs
- TreeBuilderXamlTranslator.cs
- GuidelineSet.cs
- BaseTemplateBuildProvider.cs
- ActivityTypeDesigner.xaml.cs
- MetafileEditor.cs
- SectionVisual.cs
- PropertyValueUIItem.cs
- ClaimTypes.cs
- JsonFormatMapping.cs
- validationstate.cs