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
- AsyncResult.cs
- DbConnectionOptions.cs
- DefaultParameterValueAttribute.cs
- ConfigXmlReader.cs
- SqlRemoveConstantOrderBy.cs
- PersistenceProvider.cs
- CompilerHelpers.cs
- EmptyCollection.cs
- ContentPresenter.cs
- LiteralControl.cs
- ReplyChannel.cs
- QueryConverter.cs
- FileSystemWatcher.cs
- CallbackValidator.cs
- DataGridViewCellFormattingEventArgs.cs
- PathSegmentCollection.cs
- WindowsScrollBarBits.cs
- XmlDataSource.cs
- XmlReaderDelegator.cs
- ContextMenuStrip.cs
- GenerateTemporaryTargetAssembly.cs
- StylusCaptureWithinProperty.cs
- RuleSetCollection.cs
- bidPrivateBase.cs
- DataGridCommandEventArgs.cs
- FilteredXmlReader.cs
- DataGridCellEditEndingEventArgs.cs
- SelectedCellsChangedEventArgs.cs
- TypeInfo.cs
- InlineUIContainer.cs
- DocumentOrderQuery.cs
- ExpressionVisitor.cs
- EnumerableCollectionView.cs
- DataControlFieldCollection.cs
- MappingSource.cs
- StackBuilderSink.cs
- BufferedGraphicsManager.cs
- BinaryCommonClasses.cs
- HtmlInputRadioButton.cs
- PathNode.cs
- ToolStripGripRenderEventArgs.cs
- DescendentsWalker.cs
- ListViewItem.cs
- HMACSHA256.cs
- DataGridViewColumnDesigner.cs
- XPathDocument.cs
- Mapping.cs
- WorkflowPageSetupDialog.cs
- DescendentsWalker.cs
- VariableBinder.cs
- OleDbEnumerator.cs
- FunctionDetailsReader.cs
- ConnectionPoint.cs
- InkCanvas.cs
- DataGridViewSelectedCellCollection.cs
- PeerCustomResolverSettings.cs
- PixelShader.cs
- InputChannelBinder.cs
- LocationReference.cs
- DynamicDataManager.cs
- UseManagedPresentationBindingElement.cs
- XmlSchemaParticle.cs
- BaseCollection.cs
- CalendarData.cs
- SqlUserDefinedTypeAttribute.cs
- CollectionBase.cs
- RelatedCurrencyManager.cs
- CachedBitmap.cs
- CustomDictionarySources.cs
- OleServicesContext.cs
- DesignerAdapterAttribute.cs
- PasswordRecovery.cs
- ObjectDataSource.cs
- SafeRightsManagementQueryHandle.cs
- SqlIdentifier.cs
- xmlfixedPageInfo.cs
- SoapIgnoreAttribute.cs
- WebBrowserProgressChangedEventHandler.cs
- SplineQuaternionKeyFrame.cs
- ClonableStack.cs
- Label.cs
- OledbConnectionStringbuilder.cs
- CodeThrowExceptionStatement.cs
- WinEventQueueItem.cs
- CombinedGeometry.cs
- DockPatternIdentifiers.cs
- MethodCallTranslator.cs
- FileSystemWatcher.cs
- ObjectView.cs
- ProfileSettingsCollection.cs
- SQLStringStorage.cs
- MetabaseSettingsIis7.cs
- FragmentNavigationEventArgs.cs
- VisualTarget.cs
- TransformProviderWrapper.cs
- InternalConfigSettingsFactory.cs
- FormsAuthenticationUserCollection.cs
- CodeMethodInvokeExpression.cs
- Subtree.cs
- Vector3DValueSerializer.cs