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
- DataRowView.cs
- SmiContext.cs
- WindowsToolbar.cs
- Visual.cs
- QueryExpr.cs
- NumberFormatInfo.cs
- ArcSegment.cs
- ListViewEditEventArgs.cs
- XmlNamespaceMapping.cs
- TextEvent.cs
- ToolBar.cs
- Marshal.cs
- SqlConnectionPoolGroupProviderInfo.cs
- DataServiceQueryProvider.cs
- LogReserveAndAppendState.cs
- RowsCopiedEventArgs.cs
- StrongNameKeyPair.cs
- Track.cs
- OutKeywords.cs
- ObjectHelper.cs
- DesignerTextWriter.cs
- AnnotationResourceChangedEventArgs.cs
- NTAccount.cs
- DirectoryNotFoundException.cs
- webproxy.cs
- RolePrincipal.cs
- SourceFileBuildProvider.cs
- IdentityModelStringsVersion1.cs
- TableItemStyle.cs
- HeaderCollection.cs
- Vector3DCollection.cs
- TdsParser.cs
- ColorConvertedBitmapExtension.cs
- CodePageEncoding.cs
- SafeNativeMethods.cs
- HtmlElement.cs
- TreeViewAutomationPeer.cs
- Size3DConverter.cs
- SystemIPGlobalStatistics.cs
- EncryptedKeyHashIdentifierClause.cs
- TypeLibConverter.cs
- WeakEventManager.cs
- DataProtection.cs
- MatchAttribute.cs
- OleDbDataReader.cs
- DynamicUpdateCommand.cs
- HtmlInputPassword.cs
- SqlMethods.cs
- Image.cs
- RelationshipEndCollection.cs
- Package.cs
- SystemGatewayIPAddressInformation.cs
- PointAnimation.cs
- versioninfo.cs
- Win32SafeHandles.cs
- WebConfigurationHost.cs
- Exceptions.cs
- Scene3D.cs
- FormViewDeletedEventArgs.cs
- InputElement.cs
- XmlSchemaComplexContentRestriction.cs
- RectAnimationUsingKeyFrames.cs
- autovalidator.cs
- ContentElement.cs
- OleDbSchemaGuid.cs
- DbParameterHelper.cs
- TreeIterator.cs
- InvalidOleVariantTypeException.cs
- CollectionContainer.cs
- WebSysDescriptionAttribute.cs
- WeakReference.cs
- RootBrowserWindow.cs
- ContractHandle.cs
- DbDataRecord.cs
- sqlinternaltransaction.cs
- UTF7Encoding.cs
- SaveFileDialog.cs
- CompilerWrapper.cs
- WebBrowserContainer.cs
- odbcmetadatacolumnnames.cs
- FrameworkElement.cs
- SiteMapPath.cs
- KeyValuePair.cs
- ErrorTableItemStyle.cs
- DataStreamFromComStream.cs
- DataGridViewRow.cs
- UnSafeCharBuffer.cs
- EntityViewGenerator.cs
- HotSpot.cs
- DoWorkEventArgs.cs
- OleDbCommand.cs
- BuildTopDownAttribute.cs
- QuadraticBezierSegment.cs
- ServiceProviders.cs
- MetaType.cs
- DownloadProgressEventArgs.cs
- ModelUIElement3D.cs
- XmlSerializableReader.cs
- TargetControlTypeCache.cs
- ColorTranslator.cs