Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- WmlSelectionListAdapter.cs
- controlskin.cs
- ObjectViewFactory.cs
- HiddenFieldPageStatePersister.cs
- Enlistment.cs
- SqlFacetAttribute.cs
- ToolStripHighContrastRenderer.cs
- ObjectIDGenerator.cs
- WebPartTransformerAttribute.cs
- FileUtil.cs
- DataControlImageButton.cs
- BaseComponentEditor.cs
- DataContract.cs
- DbConnectionPoolGroupProviderInfo.cs
- FixedSOMTableRow.cs
- CallTemplateAction.cs
- WebPartEditorCancelVerb.cs
- TextShapeableCharacters.cs
- VisualTreeHelper.cs
- PropertyToken.cs
- SystemIPv4InterfaceProperties.cs
- TypeElement.cs
- MarkupCompiler.cs
- Label.cs
- DbConnectionClosed.cs
- NameObjectCollectionBase.cs
- InputBinder.cs
- Deflater.cs
- BaseValidator.cs
- RequestResizeEvent.cs
- DataGridAutoFormat.cs
- XmlNodeList.cs
- HierarchicalDataSourceControl.cs
- TextMessageEncodingElement.cs
- RawTextInputReport.cs
- DataQuery.cs
- MsmqIntegrationBindingElement.cs
- PageCodeDomTreeGenerator.cs
- FrameworkElementFactoryMarkupObject.cs
- SecUtil.cs
- HttpContext.cs
- StateMachineWorkflowInstance.cs
- CounterSetInstanceCounterDataSet.cs
- SafePointer.cs
- FileVersion.cs
- unsafeIndexingFilterStream.cs
- BamlMapTable.cs
- DirtyTextRange.cs
- NavigationWindowAutomationPeer.cs
- AppDomain.cs
- SQLGuid.cs
- JoinElimination.cs
- SrgsToken.cs
- HttpModuleCollection.cs
- RecommendedAsConfigurableAttribute.cs
- CircleEase.cs
- StringOutput.cs
- ItemsControlAutomationPeer.cs
- Rotation3DAnimation.cs
- WinEventWrap.cs
- SimpleTableProvider.cs
- StringKeyFrameCollection.cs
- SystemEvents.cs
- RegistryPermission.cs
- Automation.cs
- FastPropertyAccessor.cs
- SQLInt16Storage.cs
- EventlogProvider.cs
- FixedTextSelectionProcessor.cs
- PathSegment.cs
- WebException.cs
- CompiledXpathExpr.cs
- AliasGenerator.cs
- MenuItemStyleCollection.cs
- FrameworkTemplate.cs
- DecoderFallback.cs
- XmlSchemaExternal.cs
- ContentOperations.cs
- SafeLibraryHandle.cs
- MbpInfo.cs
- ToggleProviderWrapper.cs
- ContextMenuStrip.cs
- PolicyManager.cs
- PathStreamGeometryContext.cs
- DataGridViewLayoutData.cs
- VirtualDirectoryMappingCollection.cs
- NativeMethods.cs
- ContainerSelectorBehavior.cs
- InvalidPrinterException.cs
- FormatConvertedBitmap.cs
- Int32AnimationBase.cs
- TransformValueSerializer.cs
- ItemContainerGenerator.cs
- CheckBox.cs
- WindowsScroll.cs
- IDispatchConstantAttribute.cs
- DelegateBodyWriter.cs
- XmlToDatasetMap.cs
- xmlNames.cs
- MenuItemStyleCollectionEditor.cs