Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilParameter.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BindingNavigator.cs
- WeakEventTable.cs
- PersonalizationStateQuery.cs
- PageAction.cs
- Win32SafeHandles.cs
- StyleBamlTreeBuilder.cs
- X509Certificate2.cs
- ExternalFile.cs
- InertiaTranslationBehavior.cs
- TemplatePagerField.cs
- GridItemPattern.cs
- PagerSettings.cs
- SequenceNumber.cs
- MultiView.cs
- WindowsTokenRoleProvider.cs
- LateBoundBitmapDecoder.cs
- Script.cs
- namescope.cs
- FontFamilyValueSerializer.cs
- QueryStringHandler.cs
- Model3DCollection.cs
- LongTypeConverter.cs
- CompiledIdentityConstraint.cs
- RequestContext.cs
- NamespaceEmitter.cs
- ISAPIApplicationHost.cs
- _LocalDataStore.cs
- ThreadSafeList.cs
- DataTableReaderListener.cs
- AmbientProperties.cs
- SimpleHandlerFactory.cs
- ThreadAttributes.cs
- DictionarySurrogate.cs
- AppSettingsReader.cs
- StrongNameIdentityPermission.cs
- TypeRestriction.cs
- StaticTextPointer.cs
- DispatchWrapper.cs
- OleDbRowUpdatingEvent.cs
- SafeThemeHandle.cs
- UInt16.cs
- XmlStreamStore.cs
- Odbc32.cs
- WSTransactionSection.cs
- PresentationTraceSources.cs
- RewritingSimplifier.cs
- IItemProperties.cs
- TemplateContent.cs
- SqlConnectionString.cs
- Quaternion.cs
- WorkflowFileItem.cs
- IgnoreFlushAndCloseStream.cs
- DataColumn.cs
- RecordManager.cs
- DataGridViewCellLinkedList.cs
- EmbeddedMailObjectsCollection.cs
- MappingSource.cs
- PolicyUnit.cs
- ConsoleTraceListener.cs
- SecurityContextKeyIdentifierClause.cs
- ContainerVisual.cs
- SpeechUI.cs
- LinkArea.cs
- ViewBox.cs
- BoundPropertyEntry.cs
- SqlRemoveConstantOrderBy.cs
- SqlRemoveConstantOrderBy.cs
- ILGenerator.cs
- LocalizationParserHooks.cs
- SerializationStore.cs
- ProcessRequestArgs.cs
- CallbackWrapper.cs
- PieceNameHelper.cs
- SessionStateItemCollection.cs
- StyleXamlParser.cs
- MessageQueuePermissionAttribute.cs
- XmlNodeChangedEventArgs.cs
- StructuredTypeEmitter.cs
- prompt.cs
- TemplateXamlParser.cs
- QuotedPrintableStream.cs
- BlockUIContainer.cs
- RsaSecurityKey.cs
- ThumbAutomationPeer.cs
- CompilerGlobalScopeAttribute.cs
- WebPartCollection.cs
- RepeaterItemEventArgs.cs
- XmlHierarchyData.cs
- XmlILAnnotation.cs
- ToolTipService.cs
- TraceListeners.cs
- ListParaClient.cs
- TabControlCancelEvent.cs
- AutomationPatternInfo.cs
- SR.cs
- BooleanFunctions.cs
- __TransparentProxy.cs
- MenuItemBinding.cs
- SequenceFullException.cs
- KeyValuePairs.cs