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
- ConfigurationManagerInternalFactory.cs
- WmlValidationSummaryAdapter.cs
- Relationship.cs
- TextCompositionEventArgs.cs
- DbExpressionBuilder.cs
- AnimatedTypeHelpers.cs
- GroupDescription.cs
- DbParameterHelper.cs
- GenericTypeParameterConverter.cs
- EntityCommand.cs
- OleDbInfoMessageEvent.cs
- FormParameter.cs
- LoginName.cs
- FirstMatchCodeGroup.cs
- EdmPropertyAttribute.cs
- SelectorItemAutomationPeer.cs
- ContractMapping.cs
- FocusChangedEventArgs.cs
- WeakHashtable.cs
- MouseGestureValueSerializer.cs
- RuntimeWrappedException.cs
- GlobalItem.cs
- XmlElementList.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- InputGestureCollection.cs
- ConfigurationStrings.cs
- Win32SafeHandles.cs
- CompilerGeneratedAttribute.cs
- RegularExpressionValidator.cs
- ContextDataSourceView.cs
- ScriptResourceHandler.cs
- HttpListenerRequest.cs
- SchemaDeclBase.cs
- DbConnectionFactory.cs
- Attributes.cs
- RedistVersionInfo.cs
- LayoutTable.cs
- Int32CAMarshaler.cs
- CqlQuery.cs
- TextFormattingConverter.cs
- PingOptions.cs
- FormsAuthenticationUserCollection.cs
- DbDeleteCommandTree.cs
- ALinqExpressionVisitor.cs
- _ShellExpression.cs
- sapiproxy.cs
- TypeDescriptor.cs
- HMACRIPEMD160.cs
- KnownBoxes.cs
- MeasurementDCInfo.cs
- XmlNode.cs
- ScrollEventArgs.cs
- RuntimeHelpers.cs
- ACL.cs
- KeySpline.cs
- ConsoleKeyInfo.cs
- ToolStripSettings.cs
- CommandLibraryHelper.cs
- SyndicationPerson.cs
- StateMachineWorkflowDesigner.cs
- MemberMemberBinding.cs
- ProcessInfo.cs
- DateTimeFormatInfo.cs
- TdsParserStateObject.cs
- SqlExpressionNullability.cs
- FlowDocumentPage.cs
- OneWayBindingElement.cs
- BoundPropertyEntry.cs
- SourceItem.cs
- Assembly.cs
- PageContent.cs
- StatusStrip.cs
- Clause.cs
- XpsException.cs
- PolyLineSegmentFigureLogic.cs
- ADConnectionHelper.cs
- ThumbAutomationPeer.cs
- Utilities.cs
- DefaultSettingsSection.cs
- SecurityHeaderElementInferenceEngine.cs
- VersionedStream.cs
- HttpServerUtilityBase.cs
- ArgumentValue.cs
- BamlLocalizationDictionary.cs
- SystemSounds.cs
- SqlClientWrapperSmiStream.cs
- ToolStripSeparatorRenderEventArgs.cs
- PresentationTraceSources.cs
- WorkflowEventArgs.cs
- ContentPosition.cs
- EntityFunctions.cs
- BackStopAuthenticationModule.cs
- SettingsProperty.cs
- JsonWriterDelegator.cs
- FilterUserControlBase.cs
- SafeRightsManagementPubHandle.cs
- RightNameExpirationInfoPair.cs
- BamlLocalizableResourceKey.cs
- remotingproxy.cs
- DesignerCalendarAdapter.cs