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
- QueryResultOp.cs
- SearchForVirtualItemEventArgs.cs
- GlyphTypeface.cs
- IntSecurity.cs
- DocumentViewerAutomationPeer.cs
- RankException.cs
- messageonlyhwndwrapper.cs
- ProcessProtocolHandler.cs
- WizardPanelChangingEventArgs.cs
- configsystem.cs
- MachineKey.cs
- ViewPort3D.cs
- HtmlFormWrapper.cs
- EpmSyndicationContentSerializer.cs
- FullTextState.cs
- initElementDictionary.cs
- ForwardPositionQuery.cs
- TakeQueryOptionExpression.cs
- GeneralTransform3D.cs
- GridViewSelectEventArgs.cs
- Point3DConverter.cs
- RequestCacheEntry.cs
- DataBoundLiteralControl.cs
- Thickness.cs
- SrgsRule.cs
- TableItemPattern.cs
- TemplateNodeContextMenu.cs
- DeclarationUpdate.cs
- PageAsyncTask.cs
- TextClipboardData.cs
- WebFormDesignerActionService.cs
- PlatformNotSupportedException.cs
- XXXInfos.cs
- CrossContextChannel.cs
- NetworkAddressChange.cs
- RemoteX509Token.cs
- EasingKeyFrames.cs
- MgmtConfigurationRecord.cs
- EncryptedData.cs
- ComponentDispatcherThread.cs
- BindingBase.cs
- Matrix3DValueSerializer.cs
- TextEndOfParagraph.cs
- SystemIcmpV6Statistics.cs
- PriorityQueue.cs
- Win32PrintDialog.cs
- SafeFindHandle.cs
- VisualStyleTypesAndProperties.cs
- UserControlBuildProvider.cs
- RuntimeHelpers.cs
- StringValueConverter.cs
- Hashtable.cs
- WebBrowserHelper.cs
- NetCodeGroup.cs
- XsltException.cs
- PerformanceCounterManager.cs
- PolyLineSegment.cs
- LoginView.cs
- DataBoundLiteralControl.cs
- EntityDataSourceDesigner.cs
- ToolStripProgressBar.cs
- baseaxisquery.cs
- MailMessageEventArgs.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- NumberSubstitution.cs
- GcSettings.cs
- DataGridViewEditingControlShowingEventArgs.cs
- FactoryRecord.cs
- HMACSHA512.cs
- mil_commands.cs
- RequiredFieldValidator.cs
- ResourceFallbackManager.cs
- SecurityPermission.cs
- FormViewPagerRow.cs
- cache.cs
- TextBreakpoint.cs
- RelationshipSet.cs
- MessageProtectionOrder.cs
- TdsRecordBufferSetter.cs
- BasicHttpBindingElement.cs
- ConfigurationSettings.cs
- DrawingContextDrawingContextWalker.cs
- TableHeaderCell.cs
- DefaultSettingsSection.cs
- PeekCompletedEventArgs.cs
- SurrogateEncoder.cs
- GlobalDataBindingHandler.cs
- _TransmitFileOverlappedAsyncResult.cs
- CssTextWriter.cs
- DefaultValueConverter.cs
- EventMap.cs
- X509ThumbprintKeyIdentifierClause.cs
- ValidateNames.cs
- SqlMethods.cs
- MarshalByRefObject.cs
- SoapIgnoreAttribute.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- CrossContextChannel.cs
- HttpVersion.cs
- RenderDataDrawingContext.cs