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
- SecurityDocument.cs
- TextRunCache.cs
- MultiAsyncResult.cs
- TextRangeEditTables.cs
- ValidatorCollection.cs
- AliasedSlot.cs
- ThicknessAnimationUsingKeyFrames.cs
- IndicCharClassifier.cs
- Rect3DConverter.cs
- EventData.cs
- TraceLevelStore.cs
- ServiceDocumentFormatter.cs
- PathFigure.cs
- ButtonBase.cs
- ManagedFilter.cs
- BoolExpressionVisitors.cs
- FileDataSource.cs
- SocketInformation.cs
- EmptyQuery.cs
- AspNetSynchronizationContext.cs
- DocumentXmlWriter.cs
- CodeChecksumPragma.cs
- PolyBezierSegmentFigureLogic.cs
- CriticalHandle.cs
- SimpleExpression.cs
- CatchBlock.cs
- DeadCharTextComposition.cs
- ResXFileRef.cs
- WebBaseEventKeyComparer.cs
- LoadMessageLogger.cs
- NativeMethods.cs
- XPathArrayIterator.cs
- Propagator.JoinPropagator.cs
- ProjectionNode.cs
- PropertyPathConverter.cs
- XmlObjectSerializerWriteContextComplex.cs
- TextAutomationPeer.cs
- ProfileProvider.cs
- QueryableDataSource.cs
- ClientConfigurationHost.cs
- XhtmlBasicCommandAdapter.cs
- QilXmlReader.cs
- WebPartEditorApplyVerb.cs
- Column.cs
- DataGridAddNewRow.cs
- SecurityUtils.cs
- ExpanderAutomationPeer.cs
- GraphicsContainer.cs
- ScrollItemPattern.cs
- Stream.cs
- Int32AnimationUsingKeyFrames.cs
- FileRecordSequenceHelper.cs
- ColorAnimationBase.cs
- Assert.cs
- MetadataArtifactLoaderCompositeResource.cs
- DecimalConstantAttribute.cs
- SafeCryptoHandles.cs
- _LocalDataStore.cs
- ResourceWriter.cs
- ChildDocumentBlock.cs
- EntityDataSourceContextCreatingEventArgs.cs
- BitmapSource.cs
- SQLResource.cs
- MetadataArtifactLoaderCompositeResource.cs
- DataGridViewMethods.cs
- FaultContext.cs
- DataGridViewLinkCell.cs
- Baml2006ReaderSettings.cs
- CmsUtils.cs
- CapabilitiesRule.cs
- BitmapEffectGeneralTransform.cs
- AuthenticationServiceManager.cs
- SafeArrayRankMismatchException.cs
- SimpleHandlerBuildProvider.cs
- WorkflowDesigner.cs
- StrokeSerializer.cs
- BitVector32.cs
- UserValidatedEventArgs.cs
- EventLogInformation.cs
- ExecutionContext.cs
- BinaryNode.cs
- RelOps.cs
- SubMenuStyle.cs
- BinaryReader.cs
- SqlTypeSystemProvider.cs
- PriorityItem.cs
- ResourceExpressionEditorSheet.cs
- AmbientProperties.cs
- StandardToolWindows.cs
- UserControl.cs
- ZipPackage.cs
- EventsTab.cs
- IndependentlyAnimatedPropertyMetadata.cs
- TraceUtils.cs
- TextEffectCollection.cs
- EntityTransaction.cs
- _FixedSizeReader.cs
- DataStreams.cs
- DataGridViewRowsRemovedEventArgs.cs
- EdmRelationshipNavigationPropertyAttribute.cs