Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- relpropertyhelper.cs
- FixedSOMGroup.cs
- _SslStream.cs
- WebSysDefaultValueAttribute.cs
- HtmlShim.cs
- XmlExtensionFunction.cs
- WindowVisualStateTracker.cs
- DataGridViewRowEventArgs.cs
- ToolBarButton.cs
- ChangeInterceptorAttribute.cs
- RemoteWebConfigurationHostStream.cs
- DetailsViewRow.cs
- Literal.cs
- JsonEnumDataContract.cs
- RegionIterator.cs
- TextTrailingCharacterEllipsis.cs
- XmlFormatExtensionPointAttribute.cs
- SqlFlattener.cs
- PropertyValue.cs
- QilCloneVisitor.cs
- HtmlInputRadioButton.cs
- SourceInterpreter.cs
- DockPanel.cs
- ClientProtocol.cs
- StylusDevice.cs
- UnsafeNativeMethodsCLR.cs
- SafeRightsManagementHandle.cs
- HttpRequestCacheValidator.cs
- Int64AnimationUsingKeyFrames.cs
- ToolStripItemEventArgs.cs
- ListViewHitTestInfo.cs
- ProfileParameter.cs
- ContentPlaceHolder.cs
- BamlLocalizableResourceKey.cs
- SeverityFilter.cs
- CssClassPropertyAttribute.cs
- MimeTypePropertyAttribute.cs
- RectangleHotSpot.cs
- xsdvalidator.cs
- OleDbEnumerator.cs
- XPathBuilder.cs
- BoundField.cs
- TemplateBaseAction.cs
- DataRowChangeEvent.cs
- UrlPath.cs
- BitmapFrameDecode.cs
- FatalException.cs
- XmlElementElement.cs
- SoapEnumAttribute.cs
- MetafileEditor.cs
- ControllableStoryboardAction.cs
- XmlSortKeyAccumulator.cs
- WebExceptionStatus.cs
- TargetConverter.cs
- Hash.cs
- DateTimeFormatInfo.cs
- Repeater.cs
- RequestCache.cs
- ContentWrapperAttribute.cs
- Simplifier.cs
- sqlmetadatafactory.cs
- DataGridTextBoxColumn.cs
- SchemaTableColumn.cs
- ConfigurationManagerInternal.cs
- RolePrincipal.cs
- VisualStyleRenderer.cs
- PingOptions.cs
- XsltQilFactory.cs
- Conditional.cs
- ActionFrame.cs
- SQLInt64.cs
- KoreanCalendar.cs
- RenderingEventArgs.cs
- DataGridViewColumnHeaderCell.cs
- CodeThrowExceptionStatement.cs
- DesignerAutoFormat.cs
- StylesEditorDialog.cs
- ChangeTracker.cs
- DbReferenceCollection.cs
- AnonymousIdentificationSection.cs
- ClientProxyGenerator.cs
- sapiproxy.cs
- StringValueSerializer.cs
- ByteFacetDescriptionElement.cs
- Symbol.cs
- StylusTouchDevice.cs
- DesignTableCollection.cs
- DataGridViewCellFormattingEventArgs.cs
- DataGridViewComboBoxColumn.cs
- TiffBitmapEncoder.cs
- SapiRecoInterop.cs
- SettingsProperty.cs
- ValuePatternIdentifiers.cs
- JsonServiceDocumentSerializer.cs
- mda.cs
- MessageProperties.cs
- ObjectIDGenerator.cs
- HitTestResult.cs
- OneOf.cs
- FloaterBaseParaClient.cs