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
- PathGeometry.cs
- Pair.cs
- columnmapfactory.cs
- SubMenuStyleCollection.cs
- DbResourceAllocator.cs
- DelegateSerializationHolder.cs
- DataContractSet.cs
- LocatorPart.cs
- FormsAuthenticationModule.cs
- TextElementCollection.cs
- DropShadowEffect.cs
- XmlWrappingReader.cs
- InvalidDataException.cs
- IndexExpression.cs
- AvTraceFormat.cs
- ObjectListCommand.cs
- Stacktrace.cs
- Range.cs
- ConstNode.cs
- UserUseLicenseDictionaryLoader.cs
- SqlConnectionHelper.cs
- InfoCardRSACryptoProvider.cs
- LazyLoadBehavior.cs
- DataTableExtensions.cs
- OperationAbortedException.cs
- WorkflowInspectionServices.cs
- PropertyExpression.cs
- ListBoxItemAutomationPeer.cs
- TreeNodeBinding.cs
- CustomAttributeFormatException.cs
- SafeSecurityHelper.cs
- PageCodeDomTreeGenerator.cs
- IndexedWhereQueryOperator.cs
- ChildTable.cs
- RawAppCommandInputReport.cs
- Cursors.cs
- GeneralTransform3DTo2DTo3D.cs
- OdbcStatementHandle.cs
- RelationshipEnd.cs
- XPathExpr.cs
- BaseWebProxyFinder.cs
- TableItemProviderWrapper.cs
- PersonalizationState.cs
- CodeArgumentReferenceExpression.cs
- AnnotationObservableCollection.cs
- FlowNode.cs
- SymLanguageVendor.cs
- MSAAWinEventWrap.cs
- DataGridTablesFactory.cs
- ComponentResourceKey.cs
- PartManifestEntry.cs
- SqlProcedureAttribute.cs
- ThumbAutomationPeer.cs
- WizardSideBarListControlItem.cs
- ArrayWithOffset.cs
- HtmlEncodedRawTextWriter.cs
- XmlNamespaceMapping.cs
- WebPartCatalogCloseVerb.cs
- IOThreadTimer.cs
- MessageFilterException.cs
- SpecularMaterial.cs
- TemplateBamlTreeBuilder.cs
- HandleRef.cs
- XmlCDATASection.cs
- ResourceExpression.cs
- TextBox.cs
- ServiceElement.cs
- BinaryKeyIdentifierClause.cs
- BitmapInitialize.cs
- DynamicRenderer.cs
- DataService.cs
- DataGridViewSelectedCellCollection.cs
- SqlNotificationEventArgs.cs
- _UriTypeConverter.cs
- TemplateEditingVerb.cs
- GroupLabel.cs
- WindowsFormsHelpers.cs
- MissingMethodException.cs
- OwnerDrawPropertyBag.cs
- DesignBindingValueUIHandler.cs
- UIElementParaClient.cs
- EnterpriseServicesHelper.cs
- DataObjectFieldAttribute.cs
- DataSourceView.cs
- IndividualDeviceConfig.cs
- HtmlObjectListAdapter.cs
- ConstructorNeedsTagAttribute.cs
- SessionStateUtil.cs
- StylusOverProperty.cs
- SmtpFailedRecipientException.cs
- DetailsView.cs
- FocusWithinProperty.cs
- RepeatButtonAutomationPeer.cs
- Pair.cs
- GraphicsContext.cs
- CalloutQueueItem.cs
- TextServicesHost.cs
- ProtocolInformationReader.cs
- TrustLevelCollection.cs
- PostBackOptions.cs