Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilParameter.cs / 1 / QilParameter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System; using System.Diagnostics; namespace System.Xml.Xsl.Qil { ////// View over a Qil parameter node. /// internal class QilParameter : QilIterator { private QilNode name; //----------------------------------------------- // Constructor //----------------------------------------------- ////// Construct a parameter /// public QilParameter(QilNodeType nodeType, QilNode defaultValue, QilNode name, XmlQueryType xmlType) : base(nodeType, defaultValue) { this.name = name; this.xmlType = xmlType; } //----------------------------------------------- // IListmethods -- override //----------------------------------------------- public override int Count { get { return 2; } } public override QilNode this[int index] { get { switch (index) { case 0: return Binding; case 1: return this.name; default: throw new IndexOutOfRangeException(); } } set { switch (index) { case 0: Binding = value; break; case 1: this.name = value; break; default: throw new IndexOutOfRangeException(); } } } //----------------------------------------------- // QilParameter methods //----------------------------------------------- /// /// Default value expression of this parameter (may be null). /// public QilNode DefaultValue { get { return Binding; } set { Binding = value; } } ////// Name of this parameter (may be null). /// public QilName Name { get { return (QilName) this.name; } set { this.name = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System; using System.Diagnostics; namespace System.Xml.Xsl.Qil { ////// View over a Qil parameter node. /// internal class QilParameter : QilIterator { private QilNode name; //----------------------------------------------- // Constructor //----------------------------------------------- ////// Construct a parameter /// public QilParameter(QilNodeType nodeType, QilNode defaultValue, QilNode name, XmlQueryType xmlType) : base(nodeType, defaultValue) { this.name = name; this.xmlType = xmlType; } //----------------------------------------------- // IListmethods -- override //----------------------------------------------- public override int Count { get { return 2; } } public override QilNode this[int index] { get { switch (index) { case 0: return Binding; case 1: return this.name; default: throw new IndexOutOfRangeException(); } } set { switch (index) { case 0: Binding = value; break; case 1: this.name = value; break; default: throw new IndexOutOfRangeException(); } } } //----------------------------------------------- // QilParameter methods //----------------------------------------------- /// /// Default value expression of this parameter (may be null). /// public QilNode DefaultValue { get { return Binding; } set { Binding = value; } } ////// Name of this parameter (may be null). /// public QilName Name { get { return (QilName) this.name; } set { this.name = 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
- UnmanagedMemoryStream.cs
- Publisher.cs
- PathSegment.cs
- FloaterBaseParaClient.cs
- TreeBuilder.cs
- ClaimSet.cs
- TableItemProviderWrapper.cs
- RoutingExtension.cs
- TypeValidationEventArgs.cs
- HttpRequestWrapper.cs
- SchemaManager.cs
- FlagsAttribute.cs
- ReaderOutput.cs
- ChannelServices.cs
- BitmapEffectDrawing.cs
- VirtualPathProvider.cs
- WindowsAuthenticationEventArgs.cs
- Timer.cs
- ItemCheckEvent.cs
- CharConverter.cs
- UnicastIPAddressInformationCollection.cs
- WindowShowOrOpenTracker.cs
- StaticFileHandler.cs
- EntitySetBaseCollection.cs
- InternalCache.cs
- HtmlSelectionListAdapter.cs
- Color.cs
- ImageButton.cs
- SiteMapNodeCollection.cs
- SoapFormatter.cs
- HostedTransportConfigurationManager.cs
- ToolStripContainer.cs
- IISUnsafeMethods.cs
- BulletedList.cs
- CaseInsensitiveComparer.cs
- WindowsAuthenticationModule.cs
- SocketException.cs
- HealthMonitoringSection.cs
- UpdatePanelTrigger.cs
- WindowClosedEventArgs.cs
- SystemIcmpV4Statistics.cs
- TextEffectCollection.cs
- IssuedSecurityTokenParameters.cs
- DrawingContextWalker.cs
- AttributeCollection.cs
- GiveFeedbackEvent.cs
- Normalizer.cs
- ConfigLoader.cs
- BooleanFacetDescriptionElement.cs
- RadioButtonList.cs
- BrowserDefinition.cs
- SamlAttribute.cs
- ExecutionEngineException.cs
- ThreadStartException.cs
- ZipPackagePart.cs
- PixelFormat.cs
- CodeObjectCreateExpression.cs
- RawStylusInput.cs
- GeneralTransform2DTo3D.cs
- ColumnCollection.cs
- DirectoryNotFoundException.cs
- IItemProperties.cs
- Sql8ExpressionRewriter.cs
- TextElementEnumerator.cs
- PluralizationServiceUtil.cs
- AuthorizationRule.cs
- FrameworkRichTextComposition.cs
- DataTableReaderListener.cs
- StorageEndPropertyMapping.cs
- safelink.cs
- DateTimeConverter.cs
- SecurityKeyType.cs
- XpsViewerException.cs
- Crypto.cs
- TrustLevel.cs
- LongValidatorAttribute.cs
- DataGridCell.cs
- CssStyleCollection.cs
- CodeObject.cs
- ModelItem.cs
- PreservationFileWriter.cs
- AssociationTypeEmitter.cs
- AnchoredBlock.cs
- CaseCqlBlock.cs
- NonVisualControlAttribute.cs
- PolicyChain.cs
- BulletedListDesigner.cs
- InkPresenter.cs
- updatecommandorderer.cs
- InvokeDelegate.cs
- PageHandlerFactory.cs
- ControlOperationInvoker.cs
- StylusPoint.cs
- WebServiceData.cs
- MenuItemBinding.cs
- OrderPreservingPipeliningMergeHelper.cs
- hebrewshape.cs
- PixelFormats.cs
- TableLayoutStyleCollection.cs
- PagerSettings.cs