Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ExtentJoinTreeNode.cs
- MenuBase.cs
- ResourceAssociationTypeEnd.cs
- OleDbFactory.cs
- PromptEventArgs.cs
- NameTable.cs
- Registry.cs
- DrawingBrush.cs
- TriggerBase.cs
- DataChangedEventManager.cs
- TextEditor.cs
- XmlTextAttribute.cs
- SqlServices.cs
- SystemWebCachingSectionGroup.cs
- BulletedList.cs
- CodeDOMUtility.cs
- SeekStoryboard.cs
- SourceFileBuildProvider.cs
- ProviderMetadataCachedInformation.cs
- Binding.cs
- Process.cs
- MsmqChannelListenerBase.cs
- AssemblyInfo.cs
- Options.cs
- SafeNativeMethods.cs
- TableParaClient.cs
- MarkupObject.cs
- PerformanceCounterPermission.cs
- XmlHierarchicalDataSourceView.cs
- DefaultPrintController.cs
- XmlReaderDelegator.cs
- BookmarkInfo.cs
- _ContextAwareResult.cs
- OleTxTransaction.cs
- XmlSchemaAll.cs
- SystemParameters.cs
- AssemblyBuilderData.cs
- FixedPageStructure.cs
- SafeRightsManagementSessionHandle.cs
- ReadContentAsBinaryHelper.cs
- NonParentingControl.cs
- DataGridViewComboBoxColumn.cs
- Control.cs
- XmlTypeAttribute.cs
- ToolStripTextBox.cs
- StyleHelper.cs
- DataGridLinkButton.cs
- ScriptServiceAttribute.cs
- DataControlField.cs
- Point4D.cs
- CategoryNameCollection.cs
- LinkLabelLinkClickedEvent.cs
- TemplateControlCodeDomTreeGenerator.cs
- PropertyDescriptorGridEntry.cs
- Encoding.cs
- ValidationPropertyAttribute.cs
- SymbolTable.cs
- CodeNamespaceCollection.cs
- FlowDocumentView.cs
- StoreUtilities.cs
- CellTreeNodeVisitors.cs
- PropertyBuilder.cs
- ObjectStateManagerMetadata.cs
- DataServiceRequestException.cs
- GeometryModel3D.cs
- DataObjectPastingEventArgs.cs
- ColorConvertedBitmap.cs
- HashMembershipCondition.cs
- GroupDescription.cs
- SiteOfOriginContainer.cs
- NativeWindow.cs
- MethodSet.cs
- Types.cs
- RenderCapability.cs
- UIElementParaClient.cs
- Trace.cs
- DispatchOperationRuntime.cs
- DataGridViewColumnTypeEditor.cs
- ConvertEvent.cs
- AtomicFile.cs
- ComboBoxRenderer.cs
- ThemeDirectoryCompiler.cs
- MethodRental.cs
- BitmapEffectGroup.cs
- ObjectDataSourceView.cs
- CreateBookmarkScope.cs
- DataGridViewCellStyleConverter.cs
- LayoutManager.cs
- StreamGeometry.cs
- DataGridComboBoxColumn.cs
- SpecialTypeDataContract.cs
- HttpCookiesSection.cs
- ObjectParameterCollection.cs
- XmlSchemaNotation.cs
- EdmComplexTypeAttribute.cs
- ServiceReference.cs
- CompModSwitches.cs
- FilterException.cs
- ProcessInputEventArgs.cs
- Buffer.cs