Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SelectionRangeConverter.cs
- ArgIterator.cs
- MediaTimeline.cs
- MTConfigUtil.cs
- SiteOfOriginPart.cs
- Dynamic.cs
- KeyFrames.cs
- VectorKeyFrameCollection.cs
- UpDownEvent.cs
- ChannelDemuxer.cs
- ToolStripDesignerAvailabilityAttribute.cs
- AuthenticateEventArgs.cs
- WebPartMenuStyle.cs
- regiisutil.cs
- NonVisualControlAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- ToolStripSeparatorRenderEventArgs.cs
- AsymmetricCryptoHandle.cs
- WindowsListViewItemStartMenu.cs
- HebrewNumber.cs
- WrapPanel.cs
- DesignerWithHeader.cs
- XsltContext.cs
- UIPermission.cs
- RowCache.cs
- XsdBuildProvider.cs
- KeyPressEvent.cs
- SessionPageStatePersister.cs
- TaskFormBase.cs
- SafeCryptHandles.cs
- MappingException.cs
- MethodExpr.cs
- HttpHandlerAction.cs
- ScriptManagerProxy.cs
- CodeIdentifier.cs
- EnumerableRowCollection.cs
- SerializationHelper.cs
- WebPartConnectionsConnectVerb.cs
- ThreadExceptionDialog.cs
- StringAnimationBase.cs
- CultureSpecificCharacterBufferRange.cs
- NamedPipeTransportSecurity.cs
- CheckBoxList.cs
- WinEventQueueItem.cs
- Substitution.cs
- ChoiceConverter.cs
- EntityProviderFactory.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- CryptoKeySecurity.cs
- SelectionPattern.cs
- GZipObjectSerializer.cs
- XPathSingletonIterator.cs
- AccessControlEntry.cs
- Thumb.cs
- PtsHost.cs
- ErrorItem.cs
- BuildResult.cs
- ListChunk.cs
- StreamReader.cs
- EventLogPermission.cs
- BindingExpression.cs
- PackageDocument.cs
- CryptographicAttribute.cs
- JpegBitmapDecoder.cs
- ResourceReferenceKeyNotFoundException.cs
- MetadataWorkspace.cs
- DataGridRow.cs
- XmlCodeExporter.cs
- NetworkInterface.cs
- RuleConditionDialog.cs
- TargetException.cs
- diagnosticsswitches.cs
- CompositionDesigner.cs
- Point4DValueSerializer.cs
- ApplicationServicesHostFactory.cs
- UidPropertyAttribute.cs
- MSAAWinEventWrap.cs
- DataRow.cs
- Nullable.cs
- TextTreeFixupNode.cs
- KnownBoxes.cs
- SafeBitVector32.cs
- PersonalizablePropertyEntry.cs
- PiiTraceSource.cs
- HostingEnvironmentWrapper.cs
- ReachNamespaceInfo.cs
- ConfigurationErrorsException.cs
- HttpHostedTransportConfiguration.cs
- XmlDictionaryString.cs
- UIInitializationException.cs
- TextUtf8RawTextWriter.cs
- Config.cs
- BoundColumn.cs
- FileRecordSequence.cs
- TextTreeFixupNode.cs
- RtfFormatStack.cs
- TableItemStyle.cs
- NavigationFailedEventArgs.cs
- ObjectDataSourceView.cs
- cryptoapiTransform.cs