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
- XPathException.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- DataGridViewCellParsingEventArgs.cs
- GridViewDeletedEventArgs.cs
- SmtpMail.cs
- ImageAutomationPeer.cs
- ScrollViewerAutomationPeer.cs
- ellipse.cs
- XamlFxTrace.cs
- DeferredTextReference.cs
- XmlParserContext.cs
- ImageAnimator.cs
- NameScopePropertyAttribute.cs
- SourceFileBuildProvider.cs
- FullTextLine.cs
- CompositeActivityDesigner.cs
- Permission.cs
- XamlDebuggerXmlReader.cs
- ExecutedRoutedEventArgs.cs
- TextBoxAutomationPeer.cs
- HtmlInputButton.cs
- LeaseManager.cs
- Number.cs
- TextViewDesigner.cs
- PlainXmlDeserializer.cs
- URLIdentityPermission.cs
- SamlAssertionKeyIdentifierClause.cs
- EntityDesignerDataSourceView.cs
- FacetChecker.cs
- TreeView.cs
- CfgParser.cs
- HtmlFormWrapper.cs
- DataGridViewCell.cs
- DataGridColumnDropSeparator.cs
- SmiContext.cs
- ScriptHandlerFactory.cs
- OdbcRowUpdatingEvent.cs
- entityreference_tresulttype.cs
- AudioStateChangedEventArgs.cs
- HebrewCalendar.cs
- SubtreeProcessor.cs
- XmlSchemaImporter.cs
- SmtpException.cs
- LayoutEvent.cs
- SqlUtils.cs
- SetMemberBinder.cs
- EventSource.cs
- SecurityState.cs
- OptionUsage.cs
- HttpPostServerProtocol.cs
- NullRuntimeConfig.cs
- DataPointer.cs
- EnumUnknown.cs
- XmlHelper.cs
- SoapCodeExporter.cs
- DataGridViewBand.cs
- ToolBar.cs
- TypeHelpers.cs
- AdRotatorDesigner.cs
- InvalidFilterCriteriaException.cs
- ThreadPool.cs
- DataColumnMapping.cs
- ProgressPage.cs
- GeneralTransform3DTo2DTo3D.cs
- ExpressionBuilder.cs
- DataRowView.cs
- PrintDocument.cs
- CalendarDay.cs
- ThemeableAttribute.cs
- TemplateControlBuildProvider.cs
- ChangeNode.cs
- ToolboxDataAttribute.cs
- DetailsViewUpdateEventArgs.cs
- Point4DValueSerializer.cs
- ScrollBarRenderer.cs
- EntityDataSourceDesigner.cs
- BufferedGraphicsContext.cs
- Helpers.cs
- XmlSchemaAny.cs
- ManagedWndProcTracker.cs
- BitConverter.cs
- DeclarativeCatalogPart.cs
- TargetParameterCountException.cs
- ControlCollection.cs
- Preprocessor.cs
- ItemPager.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- XmlEncodedRawTextWriter.cs
- DataMisalignedException.cs
- BitmapSizeOptions.cs
- EntitySetDataBindingList.cs
- OdbcReferenceCollection.cs
- DateTimeStorage.cs
- ControlBuilder.cs
- MimeObjectFactory.cs
- PropertyRef.cs
- TemplateComponentConnector.cs
- BufferedGraphics.cs
- CustomError.cs
- RegistryExceptionHelper.cs