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
- WebBrowserNavigatingEventHandler.cs
- SelectionEditingBehavior.cs
- StaticFileHandler.cs
- SspiSecurityToken.cs
- EpmSyndicationContentSerializer.cs
- loginstatus.cs
- BufferedWebEventProvider.cs
- AdjustableArrowCap.cs
- Rfc2898DeriveBytes.cs
- VisualCollection.cs
- AssociationEndMember.cs
- initElementDictionary.cs
- XmlTextAttribute.cs
- MetafileHeader.cs
- RefreshPropertiesAttribute.cs
- TimelineCollection.cs
- Util.cs
- ToolboxBitmapAttribute.cs
- PlanCompiler.cs
- ResolvedKeyFrameEntry.cs
- ProfileInfo.cs
- BufferedWebEventProvider.cs
- ComponentChangingEvent.cs
- SystemFonts.cs
- FontSource.cs
- DataGridViewLinkColumn.cs
- TypeHelper.cs
- StringAnimationBase.cs
- FormViewPageEventArgs.cs
- Stroke.cs
- ElementUtil.cs
- SessionPageStatePersister.cs
- PointCollectionValueSerializer.cs
- DbParameterCollectionHelper.cs
- ByeMessage11.cs
- DocumentNUp.cs
- DelegateOutArgument.cs
- BitmapCodecInfo.cs
- TraceHandler.cs
- FormsAuthenticationCredentials.cs
- TcpClientChannel.cs
- ClientRolePrincipal.cs
- DefaultBinder.cs
- ToolStripProgressBar.cs
- VectorAnimationBase.cs
- SinglePhaseEnlistment.cs
- smtppermission.cs
- IsolatedStorageFileStream.cs
- RemotingException.cs
- PagesSection.cs
- ListViewCommandEventArgs.cs
- NeutralResourcesLanguageAttribute.cs
- NetworkInformationPermission.cs
- PrinterUnitConvert.cs
- TextEffect.cs
- webclient.cs
- DiscoveryUtility.cs
- _NegoState.cs
- XmlNamedNodeMap.cs
- XmlBinaryReader.cs
- ImmutableObjectAttribute.cs
- SqlErrorCollection.cs
- SchemaAttDef.cs
- xamlnodes.cs
- CapiSafeHandles.cs
- Int32AnimationBase.cs
- ToolStripLocationCancelEventArgs.cs
- CipherData.cs
- JpegBitmapEncoder.cs
- CellQuery.cs
- PrivateFontCollection.cs
- PersistenceParticipant.cs
- RuntimeResourceSet.cs
- Journaling.cs
- SendMailErrorEventArgs.cs
- UrlMappingCollection.cs
- NamedPipeAppDomainProtocolHandler.cs
- ByteRangeDownloader.cs
- MessageHeaderException.cs
- Command.cs
- TextRange.cs
- OperationContractAttribute.cs
- GeneralTransformCollection.cs
- DrawItemEvent.cs
- ProgressChangedEventArgs.cs
- BinaryOperationBinder.cs
- FormViewInsertedEventArgs.cs
- GeometryDrawing.cs
- CorrelationToken.cs
- ProjectionPathBuilder.cs
- Token.cs
- TypedColumnHandler.cs
- StylusButtonCollection.cs
- UserPreferenceChangedEventArgs.cs
- indexingfiltermarshaler.cs
- Clipboard.cs
- WebHttpBinding.cs
- SafeRightsManagementQueryHandle.cs
- PageBreakRecord.cs
- ContactManager.cs