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
- URLAttribute.cs
- SchemaElementDecl.cs
- ColorAnimation.cs
- UInt32Storage.cs
- SqlBinder.cs
- SerializationEventsCache.cs
- Screen.cs
- MILUtilities.cs
- ListViewInsertedEventArgs.cs
- ConnectionManagementElementCollection.cs
- PageAdapter.cs
- CopyAction.cs
- SignedXml.cs
- TokenBasedSet.cs
- ReadOnlyAttribute.cs
- ViewManager.cs
- PageContentAsyncResult.cs
- ListBoxItemAutomationPeer.cs
- WorkflowOwnershipException.cs
- UnauthorizedWebPart.cs
- RuntimeConfigLKG.cs
- ColorConverter.cs
- Logging.cs
- DecimalConstantAttribute.cs
- VideoDrawing.cs
- ImportedPolicyConversionContext.cs
- ServicePointManager.cs
- ZipIOLocalFileDataDescriptor.cs
- ListViewDeletedEventArgs.cs
- SqlConnectionPoolProviderInfo.cs
- ObjectListSelectEventArgs.cs
- ThemeableAttribute.cs
- EdgeModeValidation.cs
- HandlerFactoryWrapper.cs
- Schema.cs
- CdpEqualityComparer.cs
- CancellationHandler.cs
- RSAOAEPKeyExchangeDeformatter.cs
- MimeTypeAttribute.cs
- ConnectionManager.cs
- SafeNativeMethods.cs
- TextEditorThreadLocalStore.cs
- CornerRadius.cs
- CommandCollectionEditor.cs
- EntityTransaction.cs
- WebControlAdapter.cs
- PageCodeDomTreeGenerator.cs
- ToolboxControl.cs
- COMException.cs
- WindowsRebar.cs
- UsernameTokenFactoryCredential.cs
- HttpApplicationFactory.cs
- FontSizeConverter.cs
- SecurityTokenParameters.cs
- ScrollChangedEventArgs.cs
- BulletDecorator.cs
- _BufferOffsetSize.cs
- WebPartConnectionsCancelEventArgs.cs
- BrushMappingModeValidation.cs
- ThicknessAnimationUsingKeyFrames.cs
- StylusPointPropertyInfo.cs
- Parameter.cs
- ItemCollection.cs
- XPathDescendantIterator.cs
- FrameAutomationPeer.cs
- FileEnumerator.cs
- TraceRecords.cs
- MimeTypePropertyAttribute.cs
- DnsCache.cs
- DispatcherSynchronizationContext.cs
- XPathNodeHelper.cs
- ZipIOExtraFieldPaddingElement.cs
- KeyFrames.cs
- SecurityTokenProvider.cs
- PropertyGrid.cs
- WebBrowserBase.cs
- FocusTracker.cs
- RichTextBox.cs
- XslUrlEditor.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- XamlUtilities.cs
- BlockCollection.cs
- ServiceOperationWrapper.cs
- BindStream.cs
- ListDictionary.cs
- RtfToken.cs
- SoapTypeAttribute.cs
- TextStore.cs
- DbDataReader.cs
- XPathDescendantIterator.cs
- AdRotator.cs
- StreamReader.cs
- ColumnResizeUndoUnit.cs
- SelectedPathEditor.cs
- ConfigurationManagerInternal.cs
- CodeRemoveEventStatement.cs
- errorpatternmatcher.cs
- SecUtil.cs
- PageParserFilter.cs
- DataGridViewRowsAddedEventArgs.cs