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
- EventQueueState.cs
- ZoneIdentityPermission.cs
- Evidence.cs
- XNodeSchemaApplier.cs
- DataGridViewCellStyleChangedEventArgs.cs
- SmiEventSink_DeferedProcessing.cs
- FileUtil.cs
- BaseInfoTable.cs
- TextProviderWrapper.cs
- DataGrid.cs
- XmlHierarchicalEnumerable.cs
- ExtentJoinTreeNode.cs
- TypeConstant.cs
- FileVersion.cs
- XsltLoader.cs
- DBProviderConfigurationHandler.cs
- CaseInsensitiveHashCodeProvider.cs
- XmlValidatingReaderImpl.cs
- BinaryFormatter.cs
- TextServicesContext.cs
- UInt64Storage.cs
- DocumentSchemaValidator.cs
- ContextMenuAutomationPeer.cs
- ResourceIDHelper.cs
- LinqToSqlWrapper.cs
- RootProfilePropertySettingsCollection.cs
- MessageQueueInstaller.cs
- SelectionRangeConverter.cs
- DisplayMemberTemplateSelector.cs
- AQNBuilder.cs
- PartBasedPackageProperties.cs
- KnownColorTable.cs
- StateChangeEvent.cs
- DecimalConstantAttribute.cs
- ReverseInheritProperty.cs
- SchemaConstraints.cs
- CollectionContainer.cs
- StandardBindingElement.cs
- StaticTextPointer.cs
- HandoffBehavior.cs
- TransportListener.cs
- BuildProviderAppliesToAttribute.cs
- XmlWriterSettings.cs
- VirtualPath.cs
- CheckBoxFlatAdapter.cs
- DelayedRegex.cs
- SoapServerMethod.cs
- TableColumnCollection.cs
- IFormattable.cs
- UnmanagedMarshal.cs
- Util.cs
- WindowsStreamSecurityBindingElement.cs
- WindowCollection.cs
- ObjectQuery.cs
- SynchronizationScope.cs
- ClientScriptManagerWrapper.cs
- sitestring.cs
- EmptyWithCancelationCheckWorkItem.cs
- DataControlExtensions.cs
- BamlRecords.cs
- OutputWindow.cs
- COMException.cs
- RemotingServices.cs
- TreeViewImageKeyConverter.cs
- CompositeTypefaceMetrics.cs
- AutomationEventArgs.cs
- HtmlEncodedRawTextWriter.cs
- CodeCastExpression.cs
- DbParameterHelper.cs
- WorkflowMessageEventHandler.cs
- WebResponse.cs
- DataGridRowAutomationPeer.cs
- activationcontext.cs
- CodeRegionDirective.cs
- WebPartCatalogCloseVerb.cs
- ProviderBase.cs
- DataContractJsonSerializer.cs
- StreamGeometry.cs
- PrintPreviewControl.cs
- ProfileProvider.cs
- BrowserCapabilitiesFactory35.cs
- HttpCookie.cs
- DebugView.cs
- TokenBasedSetEnumerator.cs
- ACL.cs
- Literal.cs
- CompositeClientFormatter.cs
- AudioBase.cs
- NamespaceCollection.cs
- DeclarativeCatalogPart.cs
- HttpListenerPrefixCollection.cs
- StrokeNodeData.cs
- EntitySetBaseCollection.cs
- sitestring.cs
- InternalMappingException.cs
- VisualTreeUtils.cs
- OSFeature.cs
- EventSetter.cs
- RequestCachePolicy.cs
- DataGridViewImageColumn.cs