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
- IncrementalHitTester.cs
- ClientRoleProvider.cs
- UnsignedPublishLicense.cs
- StyleTypedPropertyAttribute.cs
- XmlAnyAttributeAttribute.cs
- ToolStripContentPanel.cs
- ListViewPagedDataSource.cs
- TableLayoutColumnStyleCollection.cs
- DesignerVerb.cs
- MenuCommandsChangedEventArgs.cs
- TraceListener.cs
- MethodAccessException.cs
- DataGridViewCheckBoxCell.cs
- PassportAuthenticationEventArgs.cs
- Transform3D.cs
- DrawTreeNodeEventArgs.cs
- VisualTreeUtils.cs
- ListParaClient.cs
- MissingSatelliteAssemblyException.cs
- InvalidOperationException.cs
- DragEventArgs.cs
- ParseHttpDate.cs
- AspNetSynchronizationContext.cs
- FormatterServices.cs
- InterleavedZipPartStream.cs
- __Error.cs
- MetadataPropertyvalue.cs
- CustomCategoryAttribute.cs
- RawStylusActions.cs
- GenerateScriptTypeAttribute.cs
- IsolatedStorage.cs
- XmlQueryType.cs
- StructuredTypeInfo.cs
- UDPClient.cs
- EventHandlers.cs
- ProfilePropertyNameValidator.cs
- ZipIOLocalFileHeader.cs
- EventLevel.cs
- ParagraphVisual.cs
- shaperfactoryquerycacheentry.cs
- ReadOnlyCollection.cs
- ForEachDesigner.xaml.cs
- FrameworkReadOnlyPropertyMetadata.cs
- CustomTypeDescriptor.cs
- Parallel.cs
- BindingExpression.cs
- LinkConverter.cs
- DbProviderConfigurationHandler.cs
- DataGridViewSortCompareEventArgs.cs
- Site.cs
- ParameterElement.cs
- UInt16Storage.cs
- SqlTransaction.cs
- TextRenderingModeValidation.cs
- AuthenticationService.cs
- OdbcRowUpdatingEvent.cs
- DataBoundControlDesigner.cs
- SqlInternalConnection.cs
- TextTreeUndoUnit.cs
- ResourceDisplayNameAttribute.cs
- BoolExpression.cs
- ObjectDataSourceMethodEventArgs.cs
- ServiceHostFactory.cs
- StreamMarshaler.cs
- ColorTransform.cs
- Control.cs
- HtmlFormParameterReader.cs
- GridViewColumnHeaderAutomationPeer.cs
- CodeTypeParameter.cs
- TextServicesCompartmentContext.cs
- UInt16Converter.cs
- RelationshipConverter.cs
- FileDialogPermission.cs
- SoapMessage.cs
- CreateParams.cs
- SoapSchemaMember.cs
- RuleCache.cs
- DataServiceProcessingPipeline.cs
- TextAction.cs
- CTreeGenerator.cs
- ProcessManager.cs
- SplineKeyFrames.cs
- WebPartDescription.cs
- BasicViewGenerator.cs
- SchemaCollectionPreprocessor.cs
- LayoutUtils.cs
- QueryParameter.cs
- XmlCDATASection.cs
- GeometryCollection.cs
- RelationalExpressions.cs
- ServiceRouteHandler.cs
- ActiveXMessageFormatter.cs
- ApplicationGesture.cs
- SpnEndpointIdentity.cs
- RenderContext.cs
- DataGridViewComboBoxCell.cs
- HttpServerVarsCollection.cs
- HtmlInputCheckBox.cs
- DefaultEventAttribute.cs
- CompositeFontParser.cs