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 / 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
- CultureInfoConverter.cs
- XmlTextAttribute.cs
- OuterGlowBitmapEffect.cs
- ColorConverter.cs
- XPathDocumentBuilder.cs
- AttachedAnnotation.cs
- IntellisenseTextBox.cs
- FontSourceCollection.cs
- PrintControllerWithStatusDialog.cs
- TreeNodeClickEventArgs.cs
- LogConverter.cs
- EventDriven.cs
- ClientFormsAuthenticationMembershipProvider.cs
- InfoCardSchemas.cs
- AnnotationComponentChooser.cs
- Base64Stream.cs
- XMLDiffLoader.cs
- CustomAttributeFormatException.cs
- DragCompletedEventArgs.cs
- IntegerValidator.cs
- BrowserDefinitionCollection.cs
- TypeConverterHelper.cs
- lengthconverter.cs
- ContentValidator.cs
- GlobalEventManager.cs
- XmlResolver.cs
- BlockCollection.cs
- LineMetrics.cs
- MediaScriptCommandRoutedEventArgs.cs
- CacheChildrenQuery.cs
- GPRECTF.cs
- PrimaryKeyTypeConverter.cs
- PageEventArgs.cs
- selecteditemcollection.cs
- Point3DAnimation.cs
- MailAddressCollection.cs
- RawTextInputReport.cs
- MenuBindingsEditor.cs
- OdbcHandle.cs
- EditingMode.cs
- MailSettingsSection.cs
- CustomCredentialPolicy.cs
- XmlDataSourceView.cs
- StrongNameMembershipCondition.cs
- UseLicense.cs
- SelectionItemPattern.cs
- XmlSchemaAnnotation.cs
- figurelength.cs
- FileDetails.cs
- MdImport.cs
- TdsParameterSetter.cs
- Transform3D.cs
- ColorPalette.cs
- HttpResponseHeader.cs
- WebPartManagerInternals.cs
- Transform3DGroup.cs
- CollectionEditor.cs
- MetabaseServerConfig.cs
- PropertyToken.cs
- ProfileParameter.cs
- StringInfo.cs
- xamlnodes.cs
- DataKeyCollection.cs
- DataObjectMethodAttribute.cs
- ConfigsHelper.cs
- QueryResponse.cs
- DataTablePropertyDescriptor.cs
- XmlWellformedWriterHelpers.cs
- SegmentInfo.cs
- InlineUIContainer.cs
- WebPartDeleteVerb.cs
- TraceData.cs
- XmlRawWriterWrapper.cs
- FormViewRow.cs
- PageHandlerFactory.cs
- AlternateViewCollection.cs
- WindowsStatusBar.cs
- DataGridViewMethods.cs
- DataGridCaption.cs
- ImageInfo.cs
- GridToolTip.cs
- Ray3DHitTestResult.cs
- AspNetPartialTrustHelpers.cs
- basevalidator.cs
- CryptoProvider.cs
- GridViewSortEventArgs.cs
- MexBindingBindingCollectionElement.cs
- NamespaceCollection.cs
- ListenerSessionConnectionReader.cs
- ObjectTag.cs
- CodeTypeDeclarationCollection.cs
- _ListenerAsyncResult.cs
- StatusBarAutomationPeer.cs
- ContentAlignmentEditor.cs
- Path.cs
- oledbmetadatacollectionnames.cs
- FileAuthorizationModule.cs
- RawUIStateInputReport.cs
- VectorAnimation.cs
- ADMembershipProvider.cs