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
- printdlgexmarshaler.cs
- ParseChildrenAsPropertiesAttribute.cs
- BaseCodeDomTreeGenerator.cs
- Parser.cs
- securitymgrsite.cs
- NamedPipeHostedTransportConfiguration.cs
- PolygonHotSpot.cs
- TemplateEditingFrame.cs
- URL.cs
- FormsAuthenticationUserCollection.cs
- PathNode.cs
- BuildProvider.cs
- WebHttpBehavior.cs
- CodeGenerator.cs
- XmlReader.cs
- CheckBoxList.cs
- SqlColumnizer.cs
- updateconfighost.cs
- NameTable.cs
- TreeNodeBindingDepthConverter.cs
- WebResourceAttribute.cs
- WebPartConnectionsCancelVerb.cs
- _AuthenticationState.cs
- ModuleElement.cs
- PowerModeChangedEventArgs.cs
- ValidationEventArgs.cs
- UserControlAutomationPeer.cs
- DocumentViewerConstants.cs
- UserMapPath.cs
- UmAlQuraCalendar.cs
- LogArchiveSnapshot.cs
- SafeArchiveContext.cs
- BaseProcessProtocolHandler.cs
- ClientScriptManagerWrapper.cs
- WorkflowViewStateService.cs
- ComponentResourceKeyConverter.cs
- DataGridViewBindingCompleteEventArgs.cs
- DependencySource.cs
- ToolStripRendererSwitcher.cs
- AttributeParameterInfo.cs
- PipeStream.cs
- ScriptModule.cs
- TerminatorSinks.cs
- Msmq4SubqueuePoisonHandler.cs
- Vector3DAnimationBase.cs
- Latin1Encoding.cs
- WebWorkflowRole.cs
- Constraint.cs
- DataStreamFromComStream.cs
- StickyNoteContentControl.cs
- Rfc4050KeyFormatter.cs
- SymbolMethod.cs
- ElapsedEventArgs.cs
- MostlySingletonList.cs
- PingOptions.cs
- Root.cs
- RIPEMD160.cs
- ColorAnimationBase.cs
- PersistenceMetadataNamespace.cs
- InstanceLockException.cs
- ChildrenQuery.cs
- BooleanProjectedSlot.cs
- odbcmetadatacollectionnames.cs
- SignHashRequest.cs
- DataBoundControlHelper.cs
- FilterFactory.cs
- WebPartEventArgs.cs
- LogicalTreeHelper.cs
- InputLanguage.cs
- PropertyHelper.cs
- DrawingDrawingContext.cs
- StrongNamePublicKeyBlob.cs
- ProfileProvider.cs
- SerializationInfo.cs
- FileUtil.cs
- DefaultValueAttribute.cs
- HwndMouseInputProvider.cs
- ReflectPropertyDescriptor.cs
- AsyncPostBackTrigger.cs
- CookieParameter.cs
- TreeNodeStyle.cs
- SchemaCollectionPreprocessor.cs
- PrivilegeNotHeldException.cs
- DesignerToolStripControlHost.cs
- DetailsViewUpdateEventArgs.cs
- CodeGeneratorOptions.cs
- DeploymentSectionCache.cs
- GridViewCommandEventArgs.cs
- FilterQuery.cs
- ContainerControl.cs
- HtmlWindow.cs
- TypeConverterHelper.cs
- DisplayInformation.cs
- StatusBar.cs
- Rect3DConverter.cs
- CodeCompileUnit.cs
- SoapExtensionReflector.cs
- ZoneLinkButton.cs
- TableRowGroupCollection.cs
- EncodingNLS.cs