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 / QilUnary.cs / 1 / QilUnary.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 one child. /// ////// Don't construct QIL nodes directly; instead, use the internal class QilUnary : QilNode { private QilNode child; //----------------------------------------------- // Constructor //----------------------------------------------- ///QilFactory . ////// Construct a new node /// public QilUnary(QilNodeType nodeType, QilNode child) : base(nodeType) { this.child = child; } //----------------------------------------------- // IListmethods -- override //----------------------------------------------- public override int Count { get { return 1; } } public override QilNode this[int index] { get { if (index != 0) throw new IndexOutOfRangeException(); return this.child; } set { if (index != 0) throw new IndexOutOfRangeException(); this.child = value; } } //----------------------------------------------- // QilUnary methods //----------------------------------------------- public QilNode Child { get { return this.child; } set { this.child = 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 one child. /// ////// Don't construct QIL nodes directly; instead, use the internal class QilUnary : QilNode { private QilNode child; //----------------------------------------------- // Constructor //----------------------------------------------- ///QilFactory . ////// Construct a new node /// public QilUnary(QilNodeType nodeType, QilNode child) : base(nodeType) { this.child = child; } //----------------------------------------------- // IListmethods -- override //----------------------------------------------- public override int Count { get { return 1; } } public override QilNode this[int index] { get { if (index != 0) throw new IndexOutOfRangeException(); return this.child; } set { if (index != 0) throw new IndexOutOfRangeException(); this.child = value; } } //----------------------------------------------- // QilUnary methods //----------------------------------------------- public QilNode Child { get { return this.child; } set { this.child = 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
- Inline.cs
- CachedFontFamily.cs
- NativeMethodsCLR.cs
- DataColumn.cs
- ITreeGenerator.cs
- PropertyMetadata.cs
- Pair.cs
- SQLInt16.cs
- QuadraticEase.cs
- FamilyCollection.cs
- TextRangeSerialization.cs
- SQLMoneyStorage.cs
- Bidi.cs
- GroupDescription.cs
- TransformerConfigurationWizardBase.cs
- ParserContext.cs
- BindingContext.cs
- DistributedTransactionPermission.cs
- Activator.cs
- MarginCollapsingState.cs
- ZipFileInfo.cs
- ObjectTag.cs
- AstTree.cs
- KeyPressEvent.cs
- WindowsContainer.cs
- WSHttpBindingElement.cs
- PropertyInformation.cs
- validationstate.cs
- DomainUpDown.cs
- EdmType.cs
- EnumValidator.cs
- TextEvent.cs
- MetadataArtifactLoaderFile.cs
- XPathNode.cs
- ServerIdentity.cs
- PipelineModuleStepContainer.cs
- ComponentSerializationService.cs
- TouchFrameEventArgs.cs
- DateTimeOffset.cs
- SubMenuStyle.cs
- MailAddressCollection.cs
- FaultContractInfo.cs
- SqlDelegatedTransaction.cs
- SimpleFileLog.cs
- NotifyCollectionChangedEventArgs.cs
- IDQuery.cs
- DispatcherHookEventArgs.cs
- Match.cs
- DataServiceContext.cs
- HttpStreamMessage.cs
- RecordsAffectedEventArgs.cs
- DataMemberAttribute.cs
- wgx_commands.cs
- SafeArrayTypeMismatchException.cs
- InvalidWMPVersionException.cs
- Currency.cs
- TagMapInfo.cs
- Brushes.cs
- SafePointer.cs
- ConvertBinder.cs
- SymbolTable.cs
- CheckableControlBaseAdapter.cs
- WebPartZoneCollection.cs
- CompilerScope.Storage.cs
- DataGridViewIntLinkedList.cs
- FixUpCollection.cs
- ObjectTag.cs
- Identifier.cs
- WebControlsSection.cs
- JsonWriterDelegator.cs
- FileDetails.cs
- ExpandSegment.cs
- TransformPattern.cs
- HostingEnvironmentWrapper.cs
- sqlpipe.cs
- ObjectDataSourceDisposingEventArgs.cs
- EventPrivateKey.cs
- Empty.cs
- TableCellsCollectionEditor.cs
- FontSource.cs
- JobDuplex.cs
- HtmlGenericControl.cs
- SimpleTypeResolver.cs
- DataGridViewRowPrePaintEventArgs.cs
- ClientOptions.cs
- NetPeerTcpBinding.cs
- HijriCalendar.cs
- DirectoryObjectSecurity.cs
- CommandManager.cs
- NotImplementedException.cs
- Subset.cs
- LazyTextWriterCreator.cs
- XmlBoundElement.cs
- Timer.cs
- FullTrustAssemblyCollection.cs
- ErrorTableItemStyle.cs
- regiisutil.cs
- Stack.cs
- AnonymousIdentificationSection.cs
- ReservationNotFoundException.cs