Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- X509CertificateCollection.cs
- SqlCacheDependency.cs
- ServiceReference.cs
- DesignerSerializerAttribute.cs
- XmlReader.cs
- DateTimeFormatInfo.cs
- SiteMapSection.cs
- ColorDialog.cs
- PasswordPropertyTextAttribute.cs
- BamlBinaryReader.cs
- RoutingBehavior.cs
- ToggleButton.cs
- LoginCancelEventArgs.cs
- EventlogProvider.cs
- Condition.cs
- WpfKnownMemberInvoker.cs
- GeneralTransform3DTo2DTo3D.cs
- RegexTree.cs
- PriorityBindingExpression.cs
- RenderCapability.cs
- AxImporter.cs
- RawStylusInput.cs
- QueryHandler.cs
- TypeConverterAttribute.cs
- MsmqIntegrationBinding.cs
- BorderGapMaskConverter.cs
- CrossAppDomainChannel.cs
- PageBreakRecord.cs
- Vector3dCollection.cs
- EmbossBitmapEffect.cs
- CultureInfoConverter.cs
- SoapHttpTransportImporter.cs
- MostlySingletonList.cs
- LambdaCompiler.ControlFlow.cs
- SelectedDatesCollection.cs
- ConstrainedDataObject.cs
- PlanCompilerUtil.cs
- AssemblyCache.cs
- ValidationRule.cs
- BrowserDefinition.cs
- CategoryGridEntry.cs
- MetadataArtifactLoaderComposite.cs
- RestrictedTransactionalPackage.cs
- oledbmetadatacollectionnames.cs
- D3DImage.cs
- ServiceInfoCollection.cs
- EdmEntityTypeAttribute.cs
- DesignerInterfaces.cs
- XmlIlVisitor.cs
- EventlogProvider.cs
- SecurityElement.cs
- Win32.cs
- LocationReferenceEnvironment.cs
- DeferrableContent.cs
- TitleStyle.cs
- X509Certificate.cs
- HitTestDrawingContextWalker.cs
- mactripleDES.cs
- TextTreeRootNode.cs
- QueuePropertyVariants.cs
- RadioButton.cs
- OdbcEnvironmentHandle.cs
- XmlSchemaExporter.cs
- DesignConnection.cs
- DataGridState.cs
- CellParagraph.cs
- CapabilitiesUse.cs
- UIElementParaClient.cs
- StateManagedCollection.cs
- COM2PropertyBuilderUITypeEditor.cs
- XmlElementList.cs
- DefaultTraceListener.cs
- DurationConverter.cs
- MarshalByRefObject.cs
- CommandHelper.cs
- QuadraticBezierSegment.cs
- SystemFonts.cs
- JumpItem.cs
- _RegBlobWebProxyDataBuilder.cs
- OneWayBindingElement.cs
- SchemaInfo.cs
- IPEndPointCollection.cs
- LocalizabilityAttribute.cs
- ToggleProviderWrapper.cs
- OledbConnectionStringbuilder.cs
- FilterQuery.cs
- Documentation.cs
- WSTrustDec2005.cs
- TreeNodeBindingCollection.cs
- Assert.cs
- Debugger.cs
- XMLUtil.cs
- ApplicationSettingsBase.cs
- ClientConfigurationHost.cs
- ProfileProvider.cs
- ResourceReferenceExpressionConverter.cs
- CodeDirectionExpression.cs
- CheckedListBox.cs
- CompoundFileStreamReference.cs
- RuntimeConfigLKG.cs