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 / QilBinary.cs / 1 / 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
- DataControlButton.cs
- SplitterEvent.cs
- AuthorizationRule.cs
- ListViewGroupCollectionEditor.cs
- CompositeDuplexBindingElement.cs
- FunctionQuery.cs
- ZipFileInfoCollection.cs
- HTTPNotFoundHandler.cs
- Helpers.cs
- IIS7UserPrincipal.cs
- ObservableCollection.cs
- SoapEnumAttribute.cs
- ITextView.cs
- OutputCache.cs
- XmlExceptionHelper.cs
- ListViewSortEventArgs.cs
- FontUnit.cs
- StringWriter.cs
- RelatedPropertyManager.cs
- Parameter.cs
- MimeMapping.cs
- MDIClient.cs
- DrawingServices.cs
- UDPClient.cs
- XmlMembersMapping.cs
- MsmqElementBase.cs
- BuildDependencySet.cs
- DataExpression.cs
- CacheEntry.cs
- DataSourceGroupCollection.cs
- DefaultPropertyAttribute.cs
- TableRowsCollectionEditor.cs
- UnicastIPAddressInformationCollection.cs
- ParenthesizePropertyNameAttribute.cs
- PropertyEntry.cs
- CollectionViewGroup.cs
- ConnectionOrientedTransportElement.cs
- DataGridViewSelectedCellCollection.cs
- PasswordBoxAutomationPeer.cs
- AssemblyAttributesGoHere.cs
- Encoder.cs
- PolicyManager.cs
- DbProviderServices.cs
- Predicate.cs
- ControlPersister.cs
- AssociationSetEnd.cs
- LocalValueEnumerator.cs
- RevocationPoint.cs
- BooleanSwitch.cs
- HwndSourceParameters.cs
- IssuedTokenServiceElement.cs
- EntityCommandCompilationException.cs
- SecureStringHasher.cs
- DrawingContextWalker.cs
- EntityType.cs
- DoubleCollection.cs
- XmlNamespaceDeclarationsAttribute.cs
- FontUnit.cs
- FileStream.cs
- ColumnCollection.cs
- WebPartTransformer.cs
- Baml2006KnownTypes.cs
- HttpDictionary.cs
- OleDbWrapper.cs
- ToolBar.cs
- TextElementEditingBehaviorAttribute.cs
- HandlerWithFactory.cs
- SocketAddress.cs
- ErrorLog.cs
- TextSelectionHighlightLayer.cs
- TabItemAutomationPeer.cs
- StreamWriter.cs
- SynthesizerStateChangedEventArgs.cs
- Bitmap.cs
- SoapExtensionReflector.cs
- SerializationFieldInfo.cs
- SkipStoryboardToFill.cs
- TreeChangeInfo.cs
- SizeConverter.cs
- LinqDataView.cs
- Frame.cs
- DependentList.cs
- HttpHandler.cs
- ExpandedWrapper.cs
- IChannel.cs
- IImplicitResourceProvider.cs
- Lazy.cs
- IndexerNameAttribute.cs
- PrintEvent.cs
- EntityDataSourceDataSelectionPanel.cs
- PathStreamGeometryContext.cs
- FunctionDefinition.cs
- TextEditorDragDrop.cs
- TableCellCollection.cs
- WinCategoryAttribute.cs
- DeferredBinaryDeserializerExtension.cs
- Stack.cs
- XslCompiledTransform.cs
- ControlCachePolicy.cs
- BuildProvider.cs