Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilParameter.cs / 1 / 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
- FormattedTextSymbols.cs
- RowType.cs
- TextEndOfParagraph.cs
- SelectedPathEditor.cs
- TextDecoration.cs
- NullRuntimeConfig.cs
- BitmapFrame.cs
- NamespaceList.cs
- QilPatternFactory.cs
- QueryOpeningEnumerator.cs
- Helpers.cs
- Tablet.cs
- DesigntimeLicenseContextSerializer.cs
- WindowsTokenRoleProvider.cs
- ExpressionLink.cs
- AssociationType.cs
- VariableDesigner.xaml.cs
- ListViewItemSelectionChangedEvent.cs
- DataGridViewRowCancelEventArgs.cs
- DeflateStreamAsyncResult.cs
- CodeCastExpression.cs
- SelectionItemPattern.cs
- PathSegment.cs
- DbModificationCommandTree.cs
- path.cs
- SplitterPanel.cs
- translator.cs
- TableCell.cs
- LinqDataSourceHelper.cs
- ChannelManager.cs
- UrlEncodedParameterWriter.cs
- EncryptedXml.cs
- OdbcReferenceCollection.cs
- ButtonChrome.cs
- Vertex.cs
- CodeDelegateInvokeExpression.cs
- StringStorage.cs
- XmlReflectionImporter.cs
- HeaderedContentControl.cs
- Matrix.cs
- SizeConverter.cs
- ListSortDescription.cs
- ObjectListDataBindEventArgs.cs
- WrappedIUnknown.cs
- HttpRuntime.cs
- PreservationFileReader.cs
- SoapHelper.cs
- CryptoKeySecurity.cs
- WindowsFont.cs
- FieldAccessException.cs
- KeyToListMap.cs
- SystemSounds.cs
- DataStreams.cs
- WebResourceUtil.cs
- DesignerAttribute.cs
- ChildTable.cs
- StatusBarPanelClickEvent.cs
- XmlArrayItemAttribute.cs
- FileRegion.cs
- TextTreeFixupNode.cs
- IsolatedStorage.cs
- ScaleTransform3D.cs
- TableRowCollection.cs
- WindowCollection.cs
- Message.cs
- MetabaseServerConfig.cs
- CustomErrorsSection.cs
- odbcmetadatafactory.cs
- HttpModulesSection.cs
- TokenizerHelper.cs
- WindowInteropHelper.cs
- DataGridViewSortCompareEventArgs.cs
- IndexedGlyphRun.cs
- PageBuildProvider.cs
- InfoCardRSACryptoProvider.cs
- ThreadPool.cs
- VisualProxy.cs
- InvalidComObjectException.cs
- InvalidProgramException.cs
- TrackingProfileDeserializationException.cs
- ConfigXmlComment.cs
- UnhandledExceptionEventArgs.cs
- XamlUtilities.cs
- OleDbParameter.cs
- StrongNameSignatureInformation.cs
- BuiltInExpr.cs
- ZipIOBlockManager.cs
- SafeLocalMemHandle.cs
- MobileCapabilities.cs
- SafeFileMappingHandle.cs
- ProgressBarRenderer.cs
- EntityModelSchemaGenerator.cs
- Input.cs
- EasingQuaternionKeyFrame.cs
- EditorPart.cs
- StreamWriter.cs
- WindowsAuthenticationEventArgs.cs
- Model3D.cs
- DataGridViewToolTip.cs
- WebServicesDescriptionAttribute.cs