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
- DecoderFallback.cs
- HwndAppCommandInputProvider.cs
- safelinkcollection.cs
- PerformanceCounter.cs
- Line.cs
- Freezable.cs
- CryptoHelper.cs
- XmlUtilWriter.cs
- SmiContextFactory.cs
- WorkItem.cs
- HybridObjectCache.cs
- BaseValidator.cs
- SigningCredentials.cs
- PointConverter.cs
- XPathEmptyIterator.cs
- RoutedEventConverter.cs
- AppDomainProtocolHandler.cs
- RegexRunner.cs
- SHA256.cs
- SqlFunctionAttribute.cs
- BuildProviderCollection.cs
- Calendar.cs
- RequestDescription.cs
- Inline.cs
- RandomDelayQueuedSendsAsyncResult.cs
- SerializationEventsCache.cs
- ControlPager.cs
- securitycriticaldataClass.cs
- TreeView.cs
- HttpCookiesSection.cs
- X509CertificateClaimSet.cs
- WebReferenceOptions.cs
- XmlParserContext.cs
- XmlSchemaComplexContent.cs
- Binding.cs
- ReaderWriterLockWrapper.cs
- XmlStringTable.cs
- XmlSchemaExporter.cs
- FilePrompt.cs
- Expressions.cs
- HostingEnvironmentException.cs
- CacheAxisQuery.cs
- TreeViewImageGenerator.cs
- Configuration.cs
- RSAPKCS1SignatureDeformatter.cs
- AudioException.cs
- TextEditorDragDrop.cs
- ISAPIApplicationHost.cs
- PingReply.cs
- BindingExpressionBase.cs
- HashAlgorithm.cs
- XmlConvert.cs
- GridViewCommandEventArgs.cs
- DataServiceHostFactory.cs
- DataBoundControlHelper.cs
- XmlSchemaExporter.cs
- SharedPerformanceCounter.cs
- UnmanagedMemoryStream.cs
- EntitySetRetriever.cs
- Parser.cs
- DrawingCollection.cs
- ElementsClipboardData.cs
- DebugView.cs
- ValidatorUtils.cs
- DesignerDataTableBase.cs
- XhtmlBasicFormAdapter.cs
- SchemaCreator.cs
- CurrencyWrapper.cs
- TextEndOfParagraph.cs
- NotEqual.cs
- ToolStripGripRenderEventArgs.cs
- OleDbTransaction.cs
- GenericXmlSecurityToken.cs
- Brush.cs
- WindowsFormsSectionHandler.cs
- PerspectiveCamera.cs
- BaseCodeDomTreeGenerator.cs
- UpdateManifestForBrowserApplication.cs
- BindingCompleteEventArgs.cs
- OracleDataReader.cs
- QilInvoke.cs
- ImmutableAssemblyCacheEntry.cs
- NullableFloatSumAggregationOperator.cs
- LicFileLicenseProvider.cs
- WorkItem.cs
- OleDbEnumerator.cs
- ItemCollection.cs
- SendOperation.cs
- _LocalDataStoreMgr.cs
- ToolStripPanelSelectionBehavior.cs
- SrgsGrammarCompiler.cs
- AstNode.cs
- StylusPointProperty.cs
- PrimaryKeyTypeConverter.cs
- Point3DAnimationBase.cs
- MatrixTransform3D.cs
- CompilationPass2Task.cs
- WebPartCloseVerb.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- SqlXmlStorage.cs