Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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;
}
//-----------------------------------------------
// IList methods -- 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;
}
//-----------------------------------------------
// IList methods -- 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
- DirectoryObjectSecurity.cs
- StrongNameMembershipCondition.cs
- FormattedTextSymbols.cs
- HtmlTernaryTree.cs
- SupportedAddressingMode.cs
- AccessControlList.cs
- XNameTypeConverter.cs
- HtmlTernaryTree.cs
- CqlIdentifiers.cs
- StrongNameMembershipCondition.cs
- InputLangChangeRequestEvent.cs
- PrefixQName.cs
- DbProviderFactories.cs
- PrePostDescendentsWalker.cs
- DataMisalignedException.cs
- TextFindEngine.cs
- DataGridViewCellCollection.cs
- FontInfo.cs
- DecoderFallbackWithFailureFlag.cs
- BasicExpressionVisitor.cs
- PropertyMappingExceptionEventArgs.cs
- SizeValueSerializer.cs
- StatusBarPanel.cs
- DataTableClearEvent.cs
- HttpCacheParams.cs
- PublisherMembershipCondition.cs
- ContainerVisual.cs
- RoleBoolean.cs
- Relationship.cs
- FileFormatException.cs
- ViewBox.cs
- OleDbReferenceCollection.cs
- ClientRoleProvider.cs
- EventRouteFactory.cs
- ICspAsymmetricAlgorithm.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- DependentList.cs
- InkSerializer.cs
- ComponentEditorPage.cs
- SqlCacheDependencyDatabaseCollection.cs
- RestHandlerFactory.cs
- HtmlTextArea.cs
- HideDisabledControlAdapter.cs
- CodeNamespaceImport.cs
- MultipleViewProviderWrapper.cs
- InputMethodStateChangeEventArgs.cs
- IResourceProvider.cs
- DynamicMethod.cs
- TriState.cs
- XmlSchemaType.cs
- FixedFindEngine.cs
- DataGridViewUtilities.cs
- TopClause.cs
- JsonWriter.cs
- _KerberosClient.cs
- HostedAspNetEnvironment.cs
- ListViewDataItem.cs
- CommonGetThemePartSize.cs
- CodeCommentStatementCollection.cs
- GenerateTemporaryTargetAssembly.cs
- DataTableReaderListener.cs
- DataViewSettingCollection.cs
- ColumnMapProcessor.cs
- SqlDataSource.cs
- EventTask.cs
- DataGridViewRowCancelEventArgs.cs
- ContractHandle.cs
- XmlSchemaSimpleContentExtension.cs
- FSWPathEditor.cs
- WorkflowElementDialog.cs
- SessionStateSection.cs
- DesignerDataRelationship.cs
- XPathNavigatorReader.cs
- WorkingDirectoryEditor.cs
- ToolStripStatusLabel.cs
- RegexCode.cs
- PassportAuthentication.cs
- ConditionChanges.cs
- DataGridColumnEventArgs.cs
- TemplatePropertyEntry.cs
- CustomAttributeSerializer.cs
- DataGridViewColumnEventArgs.cs
- Array.cs
- ComboBox.cs
- HtmlInputReset.cs
- TextParagraphView.cs
- ContextMenuAutomationPeer.cs
- BaseContextMenu.cs
- ParameterCollection.cs
- RegexBoyerMoore.cs
- AutomationIdentifier.cs
- HttpCachePolicyWrapper.cs
- TraceFilter.cs
- OdbcReferenceCollection.cs
- InternalsVisibleToAttribute.cs
- QilFactory.cs
- ListViewHitTestInfo.cs
- OleDbError.cs
- StopStoryboard.cs
- DrawingVisual.cs