Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- _IPv6Address.cs
- Encoder.cs
- RuntimeEnvironment.cs
- MsmqProcessProtocolHandler.cs
- ObjectDataSourceEventArgs.cs
- ScrollEvent.cs
- DateTimeStorage.cs
- SocketInformation.cs
- SecurityVerifiedMessage.cs
- FileInfo.cs
- XmlNamespaceMapping.cs
- SystemFonts.cs
- control.ime.cs
- ListCollectionView.cs
- ToolStripItemTextRenderEventArgs.cs
- ObjectStateManagerMetadata.cs
- LoadedEvent.cs
- BamlMapTable.cs
- RestClientProxyHandler.cs
- HandlerFactoryWrapper.cs
- Message.cs
- MaskedTextProvider.cs
- GeometryGroup.cs
- Block.cs
- ViewStateModeByIdAttribute.cs
- CodeSnippetCompileUnit.cs
- CodeRemoveEventStatement.cs
- ComplexTypeEmitter.cs
- Regex.cs
- FloaterParagraph.cs
- HyperLinkField.cs
- CodeAccessPermission.cs
- DocumentPageViewAutomationPeer.cs
- ListItemConverter.cs
- TextTreeRootNode.cs
- HttpServerChannel.cs
- UserControl.cs
- SkinBuilder.cs
- TableParagraph.cs
- HtmlWindowCollection.cs
- HtmlTableCell.cs
- Debug.cs
- DeviceOverridableAttribute.cs
- COM2TypeInfoProcessor.cs
- PhysicalFontFamily.cs
- TableLayout.cs
- ScriptServiceAttribute.cs
- FeedUtils.cs
- EmbeddedMailObject.cs
- MasterPageBuildProvider.cs
- CodeFieldReferenceExpression.cs
- GeometryModel3D.cs
- ClientBuildManagerCallback.cs
- SoapAttributes.cs
- RelationshipEntry.cs
- VersionedStreamOwner.cs
- UIInitializationException.cs
- StrongName.cs
- FlowDecisionDesigner.xaml.cs
- TrackPoint.cs
- ReleaseInstanceMode.cs
- SemanticKeyElement.cs
- FixedSOMElement.cs
- Delegate.cs
- URLMembershipCondition.cs
- QilIterator.cs
- StringAttributeCollection.cs
- XhtmlBasicControlAdapter.cs
- QuarticEase.cs
- Point3DIndependentAnimationStorage.cs
- DataPagerCommandEventArgs.cs
- PrinterSettings.cs
- LogStore.cs
- ItemsPanelTemplate.cs
- ServiceModelActivationSectionGroup.cs
- CollectionViewSource.cs
- StickyNoteAnnotations.cs
- ReturnEventArgs.cs
- RootBrowserWindowProxy.cs
- KerberosSecurityTokenAuthenticator.cs
- TypeBinaryExpression.cs
- SystemColors.cs
- Queue.cs
- MulticastDelegate.cs
- GridViewActionList.cs
- TraceUtility.cs
- Brushes.cs
- MemoryStream.cs
- ArgumentValueSerializer.cs
- String.cs
- State.cs
- ConnectionManager.cs
- BoundField.cs
- Section.cs
- HatchBrush.cs
- ColumnResizeAdorner.cs
- HwndMouseInputProvider.cs
- HttpResponseHeader.cs
- TraceUtils.cs
- ContainerParaClient.cs