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
- SecurityPermission.cs
- ExpressionConverter.cs
- isolationinterop.cs
- SystemColors.cs
- ComponentSerializationService.cs
- ChineseLunisolarCalendar.cs
- SoapSchemaImporter.cs
- PtsCache.cs
- BamlLocalizabilityResolver.cs
- EtwTrace.cs
- URL.cs
- PerfCounterSection.cs
- InfoCardTrace.cs
- DoubleAnimationClockResource.cs
- TypeConverter.cs
- FontDifferentiator.cs
- MetadataImporter.cs
- basenumberconverter.cs
- IResourceProvider.cs
- LogicalExpr.cs
- PropertyCondition.cs
- httpstaticobjectscollection.cs
- MappingMetadataHelper.cs
- SplitterPanel.cs
- MobileErrorInfo.cs
- TabRenderer.cs
- Code.cs
- HitTestParameters.cs
- RawMouseInputReport.cs
- KeyValuePairs.cs
- Parsers.cs
- CursorConverter.cs
- SimpleApplicationHost.cs
- FileDialog_Vista.cs
- path.cs
- LambdaCompiler.ControlFlow.cs
- StyleHelper.cs
- FormViewInsertedEventArgs.cs
- ReservationNotFoundException.cs
- QilBinary.cs
- TdsParserSessionPool.cs
- SortQuery.cs
- OutputCacheModule.cs
- RepeatInfo.cs
- MouseActionValueSerializer.cs
- InkSerializer.cs
- ByteStack.cs
- TextTreeDeleteContentUndoUnit.cs
- AuthenticationConfig.cs
- PersonalizationProviderCollection.cs
- SQLDecimal.cs
- ElementsClipboardData.cs
- BindableAttribute.cs
- ToolTip.cs
- WinOEToolBoxItem.cs
- KeySpline.cs
- StickyNoteContentControl.cs
- EditorServiceContext.cs
- WebPartHeaderCloseVerb.cs
- ImageFormatConverter.cs
- ExpressionBuilderCollection.cs
- SizeChangedEventArgs.cs
- DictionaryEntry.cs
- EmptyTextWriter.cs
- DrawingContext.cs
- UserPreferenceChangingEventArgs.cs
- XmlnsCache.cs
- ImageConverter.cs
- ImageMap.cs
- SHA384Managed.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- UiaCoreApi.cs
- ItemsPanelTemplate.cs
- ServiceNameCollection.cs
- SqlConnectionPoolProviderInfo.cs
- PeerCollaborationPermission.cs
- SafeBitVector32.cs
- Debug.cs
- DataGridViewUtilities.cs
- Attributes.cs
- WebBrowsableAttribute.cs
- MoveSizeWinEventHandler.cs
- TextBoxLine.cs
- DATA_BLOB.cs
- XmlNotation.cs
- UIElementParaClient.cs
- EntitySqlQueryBuilder.cs
- SafeRightsManagementPubHandle.cs
- UInt16Converter.cs
- RoutedEventHandlerInfo.cs
- CompilerWrapper.cs
- METAHEADER.cs
- ChildrenQuery.cs
- ObjectViewListener.cs
- DesignerActionVerbItem.cs
- IPHostEntry.cs
- cookie.cs
- StringReader.cs
- ArgIterator.cs
- CodeConstructor.cs