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
- SymLanguageVendor.cs
- SafeLibraryHandle.cs
- RecoverInstanceLocksCommand.cs
- PersonalizationStateQuery.cs
- VirtualizingStackPanel.cs
- Literal.cs
- NonSerializedAttribute.cs
- CustomWebEventKey.cs
- DataGridTablesFactory.cs
- DataGridCellEditEndingEventArgs.cs
- AuthorizationBehavior.cs
- DocumentViewerBaseAutomationPeer.cs
- Enum.cs
- PageAction.cs
- FileDialogCustomPlacesCollection.cs
- FilteredAttributeCollection.cs
- Double.cs
- IntMinMaxAggregationOperator.cs
- VisualTreeUtils.cs
- MobileUserControl.cs
- UniqueConstraint.cs
- TimelineGroup.cs
- COM2TypeInfoProcessor.cs
- AppDomainFactory.cs
- BuilderElements.cs
- SplashScreenNativeMethods.cs
- MailBnfHelper.cs
- UntypedNullExpression.cs
- WebPartTransformer.cs
- Span.cs
- TreeNodeBindingCollection.cs
- ListViewDataItem.cs
- XmlSchemaComplexContent.cs
- AuthorizationRule.cs
- InArgumentConverter.cs
- ValidationRuleCollection.cs
- JpegBitmapEncoder.cs
- Cursor.cs
- unitconverter.cs
- StretchValidation.cs
- ExpressionBindingCollection.cs
- DataGridTableCollection.cs
- TextSimpleMarkerProperties.cs
- Duration.cs
- TypeConverterHelper.cs
- WrappedReader.cs
- Vector3DValueSerializer.cs
- HtmlHead.cs
- CallbackValidatorAttribute.cs
- UnmanagedMemoryStreamWrapper.cs
- FontWeights.cs
- ExtenderControl.cs
- TypefaceMap.cs
- UnmanagedMemoryStreamWrapper.cs
- FormsAuthentication.cs
- SQLBinaryStorage.cs
- WebRequestModulesSection.cs
- SecurityRuntime.cs
- SqlClientMetaDataCollectionNames.cs
- IssuedTokenClientCredential.cs
- TableRowGroup.cs
- JsonServiceDocumentSerializer.cs
- RegexWorker.cs
- CommandExpr.cs
- PlainXmlWriter.cs
- DefaultAssemblyResolver.cs
- Parser.cs
- SafeIUnknown.cs
- DnsEndPoint.cs
- TextRunTypographyProperties.cs
- AuthStoreRoleProvider.cs
- FieldBuilder.cs
- XmlSchemaDatatype.cs
- PropertyTab.cs
- PathGeometry.cs
- StylusLogic.cs
- FormViewUpdateEventArgs.cs
- CreateUserWizardStep.cs
- SelectingProviderEventArgs.cs
- AncestorChangedEventArgs.cs
- ExpressionBuilderContext.cs
- LZCodec.cs
- __Filters.cs
- CompoundFileIOPermission.cs
- LifetimeServices.cs
- TextMessageEncoder.cs
- HighlightVisual.cs
- TypeBuilderInstantiation.cs
- ObjectDataSourceEventArgs.cs
- SpeechSynthesizer.cs
- ThrowHelper.cs
- EventDescriptor.cs
- CustomTrackingQuery.cs
- SingleTagSectionHandler.cs
- BinHexEncoder.cs
- ObjectDisposedException.cs
- XPathNavigatorKeyComparer.cs
- ToolStripManager.cs
- XmlIterators.cs
- DesignerResources.cs