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
- FullTextLine.cs
- MarkupCompilePass1.cs
- QuaternionRotation3D.cs
- Image.cs
- PopupRoot.cs
- EntityTransaction.cs
- InputBindingCollection.cs
- SqlFacetAttribute.cs
- ProtocolReflector.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- AssociationSet.cs
- ResourceDescriptionAttribute.cs
- DateTimeConverter2.cs
- SpellerInterop.cs
- BinaryFormatter.cs
- WebPartsSection.cs
- _BasicClient.cs
- PopupControlService.cs
- COM2PictureConverter.cs
- PointUtil.cs
- BufferModeSettings.cs
- MeshGeometry3D.cs
- NativeMethods.cs
- SiteMapNodeItemEventArgs.cs
- ConfigurationPropertyCollection.cs
- Cursors.cs
- Label.cs
- NavigationHelper.cs
- ProcessHost.cs
- xmlsaver.cs
- DrawItemEvent.cs
- HostedHttpRequestAsyncResult.cs
- SafeSystemMetrics.cs
- Label.cs
- KeyInstance.cs
- FragmentNavigationEventArgs.cs
- PeerDuplexChannelListener.cs
- SystemIPGlobalStatistics.cs
- SoapElementAttribute.cs
- WebPartConnectionsCloseVerb.cs
- HighlightOverlayGlyph.cs
- PrivilegeNotHeldException.cs
- QilValidationVisitor.cs
- Literal.cs
- GridViewCommandEventArgs.cs
- EnumMemberAttribute.cs
- RoamingStoreFile.cs
- TaiwanLunisolarCalendar.cs
- MetadataArtifactLoaderFile.cs
- IChannel.cs
- UnsafeNativeMethods.cs
- DynamicDocumentPaginator.cs
- TranslateTransform3D.cs
- ScrollChrome.cs
- Process.cs
- KeyTime.cs
- TraceListeners.cs
- AsyncPostBackTrigger.cs
- TextLineResult.cs
- ScopelessEnumAttribute.cs
- Geometry.cs
- HttpModulesSection.cs
- DataGridViewLinkColumn.cs
- Int16AnimationUsingKeyFrames.cs
- ExpressionValueEditor.cs
- WebColorConverter.cs
- ImportCatalogPart.cs
- RegionIterator.cs
- XmlTextAttribute.cs
- CellTreeNode.cs
- EnumValAlphaComparer.cs
- CompositeDispatchFormatter.cs
- NumberFormatInfo.cs
- ToolStripButton.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- BooleanAnimationUsingKeyFrames.cs
- Shape.cs
- ImageCodecInfoPrivate.cs
- XmlNodeComparer.cs
- Color.cs
- filewebresponse.cs
- Metafile.cs
- Thumb.cs
- filewebresponse.cs
- IPEndPointCollection.cs
- QilTypeChecker.cs
- TableDetailsRow.cs
- HttpPostClientProtocol.cs
- NotConverter.cs
- DesignColumn.cs
- DataSourceXmlElementAttribute.cs
- WebPartChrome.cs
- LogLogRecordEnumerator.cs
- FixedTextContainer.cs
- XpsFilter.cs
- WorkflowFileItem.cs
- PartManifestEntry.cs
- ButtonField.cs
- ContentElementAutomationPeer.cs
- WeakRefEnumerator.cs