Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ReadOnlyHierarchicalDataSourceView.cs
- TransformerTypeCollection.cs
- InputReport.cs
- FullTextBreakpoint.cs
- Window.cs
- RotateTransform.cs
- AppDomain.cs
- TimeZoneNotFoundException.cs
- ToolStripItemCollection.cs
- TreeNode.cs
- EntityModelBuildProvider.cs
- XmlSchemaCollection.cs
- LinqExpressionNormalizer.cs
- XsdDateTime.cs
- RelatedEnd.cs
- ProxyWebPart.cs
- EntityDataSourceChangingEventArgs.cs
- ThreadInterruptedException.cs
- UpdateManifestForBrowserApplication.cs
- WorkflowView.cs
- IDReferencePropertyAttribute.cs
- OptimalTextSource.cs
- RegisteredScript.cs
- PersistChildrenAttribute.cs
- Identifier.cs
- NativeMethods.cs
- ToolStripRenderEventArgs.cs
- DSASignatureDeformatter.cs
- WebPermission.cs
- ScrollItemPatternIdentifiers.cs
- SqlDataSourceDesigner.cs
- EndPoint.cs
- QueryBranchOp.cs
- odbcmetadatacollectionnames.cs
- PlanCompiler.cs
- ConsoleTraceListener.cs
- FragmentNavigationEventArgs.cs
- EventBuilder.cs
- LinqDataSourceContextData.cs
- DataTableTypeConverter.cs
- ValidationError.cs
- TablePatternIdentifiers.cs
- RelatedCurrencyManager.cs
- PieceNameHelper.cs
- IgnoreFileBuildProvider.cs
- HtmlEncodedRawTextWriter.cs
- LogManagementAsyncResult.cs
- HttpPostProtocolReflector.cs
- ChangePassword.cs
- QueryExtender.cs
- WebRequestModuleElementCollection.cs
- XmlWriter.cs
- iisPickupDirectory.cs
- SemanticResolver.cs
- EntityObject.cs
- TreeViewDesigner.cs
- WindowsRegion.cs
- MediaSystem.cs
- ToolboxItemFilterAttribute.cs
- PartitionResolver.cs
- ExpandCollapsePattern.cs
- DurableErrorHandler.cs
- ConnectionStringSettingsCollection.cs
- ExtenderControl.cs
- AsyncResult.cs
- AsmxEndpointPickerExtension.cs
- CalendarAutoFormatDialog.cs
- MenuEventArgs.cs
- OleDbErrorCollection.cs
- CompositeScriptReference.cs
- EncoderReplacementFallback.cs
- OpenTypeLayoutCache.cs
- versioninfo.cs
- HostSecurityManager.cs
- HttpRequestTraceRecord.cs
- DataTableReaderListener.cs
- StyleSelector.cs
- RowToFieldTransformer.cs
- X509SecurityTokenAuthenticator.cs
- _ConnectStream.cs
- TextPointer.cs
- precedingquery.cs
- ISO2022Encoding.cs
- PropertyGridDesigner.cs
- ExtensionWindowHeader.cs
- IndexOutOfRangeException.cs
- RtfToken.cs
- HostingEnvironmentException.cs
- XLinq.cs
- TextContainerChangeEventArgs.cs
- SplineKeyFrames.cs
- SystemIPv6InterfaceProperties.cs
- Trigger.cs
- ExpressionBuilderCollection.cs
- CodeCommentStatementCollection.cs
- ImportFileRequest.cs
- ExceptionHelpers.cs
- DbConnectionClosed.cs
- DocumentViewerConstants.cs
- PageThemeBuildProvider.cs