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
- AssemblyNameProxy.cs
- ResponseStream.cs
- FontClient.cs
- CodeExporter.cs
- JsonWriter.cs
- NullRuntimeConfig.cs
- TreeViewDesigner.cs
- Internal.cs
- Lease.cs
- MachineKey.cs
- SortedList.cs
- SafeRightsManagementPubHandle.cs
- QfeChecker.cs
- BufferAllocator.cs
- X509IssuerSerialKeyIdentifierClause.cs
- CaseInsensitiveHashCodeProvider.cs
- EncryptedData.cs
- StreamReader.cs
- HttpHandlersSection.cs
- DesignerEventService.cs
- WebColorConverter.cs
- AssemblyAttributesGoHere.cs
- RotateTransform.cs
- FilterException.cs
- State.cs
- DataRelation.cs
- BoundPropertyEntry.cs
- MetaChildrenColumn.cs
- PointHitTestResult.cs
- HttpContext.cs
- WebPartCatalogCloseVerb.cs
- SettingsAttributeDictionary.cs
- XmlException.cs
- TextTreeRootTextBlock.cs
- TcpDuplicateContext.cs
- PointLightBase.cs
- LeftCellWrapper.cs
- DataViewSetting.cs
- Rotation3D.cs
- XomlCompilerHelpers.cs
- TdsParserSessionPool.cs
- CookieParameter.cs
- UmAlQuraCalendar.cs
- ObjectListCommandEventArgs.cs
- OutputCacheProfile.cs
- DiscoveryServerProtocol.cs
- ToolStripTextBox.cs
- StubHelpers.cs
- TickBar.cs
- RadioButtonRenderer.cs
- RowUpdatingEventArgs.cs
- XmlAtomicValue.cs
- QueryResponse.cs
- DataReaderContainer.cs
- BaseTemplateCodeDomTreeGenerator.cs
- StringUtil.cs
- XmlElement.cs
- ResourceAttributes.cs
- SharedDp.cs
- WindowsListViewGroupSubsetLink.cs
- CacheVirtualItemsEvent.cs
- XmlWrappingReader.cs
- AnnotationResource.cs
- ManagedIStream.cs
- HtmlSelect.cs
- XmlSchemaDatatype.cs
- Rethrow.cs
- SpotLight.cs
- CrossAppDomainChannel.cs
- GenerateTemporaryTargetAssembly.cs
- ResourceIDHelper.cs
- NetSectionGroup.cs
- StrongNameKeyPair.cs
- ObjectResult.cs
- GridViewUpdateEventArgs.cs
- SamlAudienceRestrictionCondition.cs
- XmlSchemaAttribute.cs
- DeferredSelectedIndexReference.cs
- CustomCredentialPolicy.cs
- TdsParameterSetter.cs
- MenuItemStyle.cs
- FixedTextBuilder.cs
- ComponentRenameEvent.cs
- Cursor.cs
- RtfToken.cs
- HtmlInputButton.cs
- EventMappingSettingsCollection.cs
- RequestResizeEvent.cs
- LineServicesCallbacks.cs
- RowParagraph.cs
- VirtualizingPanel.cs
- ReadContentAsBinaryHelper.cs
- TextServicesContext.cs
- XmlSchemaImporter.cs
- ErrorFormatterPage.cs
- ResetableIterator.cs
- ColumnHeaderConverter.cs
- ResolveDuplexCD1AsyncResult.cs
- TextAction.cs
- GroupQuery.cs