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
- WebPageTraceListener.cs
- CatalogUtil.cs
- PictureBox.cs
- Sql8ConformanceChecker.cs
- ToggleButtonAutomationPeer.cs
- IncrementalHitTester.cs
- DynamicValueConverter.cs
- LookupNode.cs
- VariableReference.cs
- XmlSchemaInferenceException.cs
- DataGridViewDataErrorEventArgs.cs
- CounterNameConverter.cs
- ApplicationServiceManager.cs
- ErrorLog.cs
- SimpleLine.cs
- SQLInt32Storage.cs
- DataRowChangeEvent.cs
- ResourceExpressionEditor.cs
- As.cs
- LogSwitch.cs
- MutexSecurity.cs
- SqlDataSourceStatusEventArgs.cs
- WhileDesigner.xaml.cs
- IntranetCredentialPolicy.cs
- DataSourceGeneratorException.cs
- Faults.cs
- SettingsAttributeDictionary.cs
- WindowsFormsDesignerOptionService.cs
- Rotation3DAnimation.cs
- TargetPerspective.cs
- InertiaExpansionBehavior.cs
- SharedDp.cs
- UniqueEventHelper.cs
- _HeaderInfo.cs
- Rules.cs
- StrongNameUtility.cs
- _OverlappedAsyncResult.cs
- EventBindingService.cs
- ExtensionWindowHeader.cs
- XmlStringTable.cs
- UrlMappingsSection.cs
- XmlSchemaAttributeGroup.cs
- DataGridViewCellStyleConverter.cs
- DeviceContext.cs
- Console.cs
- LoginCancelEventArgs.cs
- CodeTypeReferenceCollection.cs
- AsyncCompletedEventArgs.cs
- AsyncResult.cs
- Sorting.cs
- StringAnimationBase.cs
- EntityParameter.cs
- ZoneIdentityPermission.cs
- DelegatingHeader.cs
- DataGridViewCellCollection.cs
- ComponentCodeDomSerializer.cs
- ImageIndexConverter.cs
- Stackframe.cs
- ApplicationActivator.cs
- DataGridItemEventArgs.cs
- BaseDataBoundControl.cs
- ComponentGuaranteesAttribute.cs
- XamlBrushSerializer.cs
- TimeStampChecker.cs
- ConnectionStringEditor.cs
- ColorConverter.cs
- PkcsUtils.cs
- RichTextBoxDesigner.cs
- UnmanagedMemoryStreamWrapper.cs
- TreeNodeClickEventArgs.cs
- ArgumentOutOfRangeException.cs
- FormViewUpdatedEventArgs.cs
- ArrayWithOffset.cs
- ArrayTypeMismatchException.cs
- EntityDataSourceSelectingEventArgs.cs
- PerfProviderCollection.cs
- Int16Converter.cs
- ServicePointManagerElement.cs
- AttachedPropertiesService.cs
- Matrix3DStack.cs
- FragmentQueryKB.cs
- LocalizabilityAttribute.cs
- UnsafeNativeMethods.cs
- GeneratedCodeAttribute.cs
- FontWeights.cs
- DebugInfoExpression.cs
- ArrayElementGridEntry.cs
- _ConnectStream.cs
- GridViewRowCollection.cs
- SqlWebEventProvider.cs
- BinaryObjectWriter.cs
- Vector3DValueSerializer.cs
- StatusBarDrawItemEvent.cs
- ColumnMapTranslator.cs
- PagesChangedEventArgs.cs
- DbConnectionPoolIdentity.cs
- Divide.cs
- Vector3DAnimation.cs
- ScriptResourceDefinition.cs
- TextEffectCollection.cs