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
- AsyncOperation.cs
- ListControl.cs
- ConsumerConnectionPointCollection.cs
- FixedPageAutomationPeer.cs
- Transactions.cs
- CodeDomSerializationProvider.cs
- SqlBulkCopyColumnMappingCollection.cs
- TreeNodeBinding.cs
- DateTimeUtil.cs
- CodeMemberEvent.cs
- RoutingEndpointTrait.cs
- DataRecordInfo.cs
- SqlCaseSimplifier.cs
- ValueOfAction.cs
- coordinator.cs
- GacUtil.cs
- WindowsMenu.cs
- RadioButton.cs
- CurrencyWrapper.cs
- DataBinding.cs
- DbDeleteCommandTree.cs
- CompilerCollection.cs
- XmlUnspecifiedAttribute.cs
- HttpConfigurationSystem.cs
- EnglishPluralizationService.cs
- UpdatableWrapper.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- selecteditemcollection.cs
- OdbcConnectionOpen.cs
- CLSCompliantAttribute.cs
- ResXFileRef.cs
- SmtpFailedRecipientException.cs
- InvokeSchedule.cs
- TextRangeSerialization.cs
- DiscoveryClientDocuments.cs
- __Filters.cs
- DateRangeEvent.cs
- DoubleLinkListEnumerator.cs
- _NetRes.cs
- BitmapSource.cs
- ConfigurationManagerHelper.cs
- HttpCachePolicy.cs
- CultureTable.cs
- MsmqOutputSessionChannel.cs
- WebPermission.cs
- IdentifierService.cs
- RequestCacheValidator.cs
- DataColumnCollection.cs
- SelectingProviderEventArgs.cs
- ObjectDataSourceWizardForm.cs
- UInt16Storage.cs
- TripleDES.cs
- InternalConfigEventArgs.cs
- MenuBindingsEditor.cs
- Utility.cs
- WindowsStatic.cs
- SafeArrayRankMismatchException.cs
- SrgsDocumentParser.cs
- ArrayTypeMismatchException.cs
- DataGridViewTextBoxEditingControl.cs
- ChangePassword.cs
- ResolveRequestResponseAsyncResult.cs
- SafeNativeMethods.cs
- RepeaterItemEventArgs.cs
- BoundsDrawingContextWalker.cs
- JsonWriter.cs
- DeclaredTypeValidator.cs
- DataRelation.cs
- SharedPersonalizationStateInfo.cs
- TaskScheduler.cs
- TypeDescriptor.cs
- AutoScrollHelper.cs
- DBConcurrencyException.cs
- PluralizationService.cs
- ExpressionBuilder.cs
- StoreContentChangedEventArgs.cs
- Fault.cs
- SmtpException.cs
- HeaderCollection.cs
- PreservationFileReader.cs
- InsufficientMemoryException.cs
- CompositeControl.cs
- XmlWriter.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- RepeatBehaviorConverter.cs
- IndependentAnimationStorage.cs
- SQLConvert.cs
- NullableDecimalAverageAggregationOperator.cs
- PipelineModuleStepContainer.cs
- TemplateField.cs
- Point3DAnimationUsingKeyFrames.cs
- ReachDocumentSequenceSerializer.cs
- SmiTypedGetterSetter.cs
- EditCommandColumn.cs
- initElementDictionary.cs
- SqlDataSourceEnumerator.cs
- ListParagraph.cs
- TypeLibConverter.cs
- ImplicitInputBrush.cs
- DuplicateContext.cs