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
- PixelFormats.cs
- PtsCache.cs
- RequestSecurityTokenResponseCollection.cs
- TextRangeBase.cs
- ImportDesigner.xaml.cs
- TimeZone.cs
- CatalogZoneBase.cs
- SqlProviderServices.cs
- VisualStyleTypesAndProperties.cs
- SecuritySessionServerSettings.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- XmlSerializationWriter.cs
- GenericPrincipal.cs
- BooleanAnimationBase.cs
- ProgressBar.cs
- DynamicObject.cs
- ConfigurationValues.cs
- MeshGeometry3D.cs
- WsatStrings.cs
- TdsParserHelperClasses.cs
- _NtlmClient.cs
- SqlUdtInfo.cs
- DataRelationPropertyDescriptor.cs
- BlurEffect.cs
- LineServicesCallbacks.cs
- BaseComponentEditor.cs
- IndexedString.cs
- SearchForVirtualItemEventArgs.cs
- SimpleModelProvider.cs
- CriticalFinalizerObject.cs
- Helper.cs
- AndCondition.cs
- VsPropertyGrid.cs
- MarkupCompiler.cs
- ObjectDataSourceView.cs
- SqlMethodAttribute.cs
- LocationUpdates.cs
- UpdateTracker.cs
- MouseGestureValueSerializer.cs
- JsonClassDataContract.cs
- RelatedImageListAttribute.cs
- WindowsStatic.cs
- DataGridViewCellParsingEventArgs.cs
- TemplateBuilder.cs
- ListViewContainer.cs
- ChtmlPageAdapter.cs
- CreateUserWizardDesigner.cs
- StickyNoteHelper.cs
- AlignmentXValidation.cs
- BrowserInteropHelper.cs
- BufferedMessageWriter.cs
- CmsInterop.cs
- DictionarySectionHandler.cs
- TextBox.cs
- Point.cs
- RegisteredDisposeScript.cs
- MethodCallTranslator.cs
- TypeLoadException.cs
- HttpStreamFormatter.cs
- ColorComboBox.cs
- FactoryRecord.cs
- TemplateKey.cs
- TdsParameterSetter.cs
- AdCreatedEventArgs.cs
- CharacterString.cs
- MetadataHelper.cs
- Win32PrintDialog.cs
- DragEventArgs.cs
- PolyBezierSegmentFigureLogic.cs
- milexports.cs
- webbrowsersite.cs
- DataGridCellsPresenter.cs
- SoapAttributes.cs
- SupportingTokenChannel.cs
- BasePattern.cs
- DbConnectionStringCommon.cs
- CultureNotFoundException.cs
- NotificationContext.cs
- RawStylusInput.cs
- ACL.cs
- ReadOnlyHierarchicalDataSource.cs
- ErrorTableItemStyle.cs
- BufferedGraphicsManager.cs
- ColorBlend.cs
- KeyFrames.cs
- HttpModuleActionCollection.cs
- TaskFormBase.cs
- DataGridViewCellLinkedList.cs
- UserPreferenceChangingEventArgs.cs
- TextServicesManager.cs
- ChildrenQuery.cs
- UnsafeNativeMethods.cs
- TextRange.cs
- SecurityDescriptor.cs
- StandardMenuStripVerb.cs
- CqlGenerator.cs
- SystemTcpStatistics.cs
- DocumentXPathNavigator.cs
- DesignBindingPicker.cs
- RequestContext.cs