Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilParameter.cs / 1305376 / 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
- ProjectionPlan.cs
- TypeElement.cs
- Unit.cs
- DeploymentSectionCache.cs
- PropertyEmitter.cs
- Security.cs
- BorderGapMaskConverter.cs
- UpdateExpressionVisitor.cs
- Model3DCollection.cs
- ScrollBar.cs
- FacetDescription.cs
- DigestTraceRecordHelper.cs
- ReliabilityContractAttribute.cs
- ReadContentAsBinaryHelper.cs
- ToolStripDesignerUtils.cs
- OSEnvironmentHelper.cs
- QueryConverter.cs
- EventLogWatcher.cs
- QilCloneVisitor.cs
- userdatakeys.cs
- CookieProtection.cs
- StatusBarPanelClickEvent.cs
- ScopeElementCollection.cs
- WebConfigurationFileMap.cs
- Constants.cs
- XmlMapping.cs
- MetadataUtilsSmi.cs
- diagnosticsswitches.cs
- BinaryExpressionHelper.cs
- DbConnectionStringCommon.cs
- CodeIdentifiers.cs
- RuleSettingsCollection.cs
- TiffBitmapDecoder.cs
- SHA384CryptoServiceProvider.cs
- DrawingVisualDrawingContext.cs
- AxHost.cs
- Operand.cs
- SiteMembershipCondition.cs
- SQLInt16.cs
- ToolStripCodeDomSerializer.cs
- ProbeMatchesCD1.cs
- SignatureToken.cs
- SafeFindHandle.cs
- QilUnary.cs
- StylusPointCollection.cs
- M3DUtil.cs
- Assembly.cs
- ConfigurationValidatorBase.cs
- OAVariantLib.cs
- InvalidEnumArgumentException.cs
- ToolStripItemEventArgs.cs
- TableDesigner.cs
- AnimationClockResource.cs
- TypedTableHandler.cs
- AndCondition.cs
- HashHelper.cs
- Rotation3DKeyFrameCollection.cs
- CodeAccessSecurityEngine.cs
- StateMachineSubscription.cs
- ConnectionsZoneAutoFormat.cs
- ReflectTypeDescriptionProvider.cs
- StreamWriter.cs
- RepeatButtonAutomationPeer.cs
- DBDataPermissionAttribute.cs
- DataSetSchema.cs
- ApplicationDirectoryMembershipCondition.cs
- WindowsRichEditRange.cs
- KeyboardNavigation.cs
- HandledEventArgs.cs
- BufferedGraphicsContext.cs
- DataGridDesigner.cs
- PreviewPrintController.cs
- Timeline.cs
- IncrementalCompileAnalyzer.cs
- Literal.cs
- RSAOAEPKeyExchangeFormatter.cs
- DataServiceRequest.cs
- DateTimeSerializationSection.cs
- SettingsPropertyWrongTypeException.cs
- ReadOnlyDataSourceView.cs
- Misc.cs
- SafeJobHandle.cs
- SystemSounds.cs
- XmlSchemaGroupRef.cs
- DataGridViewImageCell.cs
- SystemTcpStatistics.cs
- CaseStatement.cs
- DataObject.cs
- UnsafeNativeMethods.cs
- ScrollBarAutomationPeer.cs
- StateRuntime.cs
- BinaryReader.cs
- StateChangeEvent.cs
- TransactionTraceIdentifier.cs
- StylusPointCollection.cs
- WebPartEditorApplyVerb.cs
- HandlerBase.cs
- AdjustableArrowCap.cs
- TextSelectionHighlightLayer.cs
- DesignerLabelAdapter.cs