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
- XslVisitor.cs
- AcceleratedTokenProviderState.cs
- Vector3DAnimationUsingKeyFrames.cs
- ReturnType.cs
- InputQueueChannel.cs
- ReadWriteSpinLock.cs
- FormsAuthentication.cs
- XXXInfos.cs
- SafeViewOfFileHandle.cs
- Activator.cs
- BitmapEffectInputData.cs
- AlphaSortedEnumConverter.cs
- XmlNamespaceMapping.cs
- DbConnectionPoolIdentity.cs
- XmlNotation.cs
- Adorner.cs
- DataGridTable.cs
- ConstraintManager.cs
- LinqDataSourceDisposeEventArgs.cs
- SqlParameterCollection.cs
- QualificationDataAttribute.cs
- DataBindEngine.cs
- DocumentOutline.cs
- FirstMatchCodeGroup.cs
- XmlCharCheckingWriter.cs
- AccessViolationException.cs
- GregorianCalendarHelper.cs
- Main.cs
- HtmlCommandAdapter.cs
- nulltextcontainer.cs
- DataGridRelationshipRow.cs
- RequestQueryParser.cs
- TypeUtil.cs
- SQLBinaryStorage.cs
- QuotedPairReader.cs
- XmlCharCheckingWriter.cs
- MessageSmuggler.cs
- HMACSHA384.cs
- LambdaCompiler.Expressions.cs
- AuthStoreRoleProvider.cs
- SelectionProcessor.cs
- ToolBarOverflowPanel.cs
- rsa.cs
- XmlFormatExtensionPrefixAttribute.cs
- SystemException.cs
- ColumnResizeUndoUnit.cs
- StringResourceManager.cs
- ResourceAssociationTypeEnd.cs
- WSSecurityTokenSerializer.cs
- JapaneseLunisolarCalendar.cs
- TimeSpanValidatorAttribute.cs
- Subset.cs
- PrivilegedConfigurationManager.cs
- ProxyGenerationError.cs
- Int64KeyFrameCollection.cs
- MiniModule.cs
- EventLog.cs
- DataComponentNameHandler.cs
- SqlTopReducer.cs
- Listbox.cs
- GuidelineSet.cs
- RawStylusInputCustomDataList.cs
- DockProviderWrapper.cs
- DbUpdateCommandTree.cs
- GlobalProxySelection.cs
- TranslateTransform.cs
- StylusDevice.cs
- WebFormsRootDesigner.cs
- ColumnPropertiesGroup.cs
- LinkClickEvent.cs
- UseAttributeSetsAction.cs
- TextModifierScope.cs
- Parameter.cs
- NameSpaceExtractor.cs
- StreamAsIStream.cs
- WebConfigurationFileMap.cs
- PointLight.cs
- ArrayTypeMismatchException.cs
- WebPartZoneBase.cs
- AspNetHostingPermission.cs
- DelegatedStream.cs
- GuidTagList.cs
- DataGridViewSelectedCellCollection.cs
- StructuredCompositeActivityDesigner.cs
- SlipBehavior.cs
- ArgumentException.cs
- ToolboxItemImageConverter.cs
- SymbolType.cs
- ServiceDescriptionImporter.cs
- XsdDataContractImporter.cs
- ValidatingPropertiesEventArgs.cs
- IndicShape.cs
- MobileContainerDesigner.cs
- SchemaDeclBase.cs
- RootBrowserWindowProxy.cs
- CallbackValidatorAttribute.cs
- DbExpressionBuilder.cs
- WindowsToolbarAsMenu.cs
- ExternalCalls.cs
- OdbcHandle.cs