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
- ConnectionManagementSection.cs
- AuthenticationModuleElement.cs
- SchemaImporterExtension.cs
- DPTypeDescriptorContext.cs
- DataViewSetting.cs
- ToolStripButton.cs
- SymbolEqualComparer.cs
- Expressions.cs
- RegisteredDisposeScript.cs
- JsonFormatReaderGenerator.cs
- ConsoleEntryPoint.cs
- DateTimeConstantAttribute.cs
- FormClosedEvent.cs
- MonthCalendar.cs
- RoutedUICommand.cs
- ControlCommandSet.cs
- HttpApplication.cs
- XmlDataSourceNodeDescriptor.cs
- EventHandlers.cs
- httpserverutility.cs
- COM2Properties.cs
- ButtonBaseAdapter.cs
- Popup.cs
- SspiHelper.cs
- WebRequestModuleElementCollection.cs
- BeginSelectCardRequest.cs
- WebPartMenu.cs
- EditorZoneBase.cs
- Attributes.cs
- XmlSchemaType.cs
- PropertyGeneratedEventArgs.cs
- GeneralTransform.cs
- BitmapEffectInput.cs
- ProfilePropertySettingsCollection.cs
- SeparatorAutomationPeer.cs
- SecureEnvironment.cs
- DataView.cs
- GetWinFXPath.cs
- DBBindings.cs
- Pair.cs
- TypeToken.cs
- Scanner.cs
- GridViewHeaderRowPresenter.cs
- ListCollectionView.cs
- TableChangeProcessor.cs
- EntityCommandDefinition.cs
- InvalidWMPVersionException.cs
- HTMLTextWriter.cs
- WebServiceClientProxyGenerator.cs
- DrawTreeNodeEventArgs.cs
- RegexStringValidatorAttribute.cs
- OdbcConnectionOpen.cs
- BrowserCapabilitiesCodeGenerator.cs
- TemplateParser.cs
- UInt16.cs
- CompositionTarget.cs
- DataServiceHost.cs
- SystemFonts.cs
- XmlWrappingReader.cs
- PerfCounterSection.cs
- ToolStripPanelCell.cs
- EntitySqlQueryCacheEntry.cs
- Literal.cs
- FileStream.cs
- X509ChainPolicy.cs
- WorkflowRuntimeSection.cs
- __Filters.cs
- TextOnlyOutput.cs
- CodeAccessPermission.cs
- Image.cs
- ZipIOLocalFileDataDescriptor.cs
- path.cs
- UnmanagedMemoryStream.cs
- XmlSchemaObjectCollection.cs
- ValidatingReaderNodeData.cs
- UserControl.cs
- Translator.cs
- LongTypeConverter.cs
- ImageSource.cs
- ScriptControlDescriptor.cs
- Stroke.cs
- ExpressionEvaluator.cs
- CorePropertiesFilter.cs
- WebPartDescriptionCollection.cs
- DriveNotFoundException.cs
- TranslateTransform.cs
- SerTrace.cs
- NavigatorInvalidBodyAccessException.cs
- RichTextBoxConstants.cs
- DataControlReference.cs
- FlowDocumentScrollViewer.cs
- PartialCachingAttribute.cs
- PageWrapper.cs
- WebPartTransformerAttribute.cs
- MetadataProperty.cs
- StickyNoteAnnotations.cs
- AvTraceDetails.cs
- ZipIOExtraFieldPaddingElement.cs
- PropertyMap.cs
- SendMailErrorEventArgs.cs