Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- PreservationFileWriter.cs
- KeyProperty.cs
- FunctionParameter.cs
- odbcmetadatafactory.cs
- DbConnectionStringCommon.cs
- ListViewItem.cs
- FieldReference.cs
- BindingMemberInfo.cs
- FileNotFoundException.cs
- IOThreadTimer.cs
- SwitchCase.cs
- __Filters.cs
- DisableDpiAwarenessAttribute.cs
- X509Certificate.cs
- SupportingTokenParameters.cs
- BindableAttribute.cs
- TableRowCollection.cs
- KeyManager.cs
- GeneralTransform.cs
- TextBoxAutoCompleteSourceConverter.cs
- WebPartTransformerAttribute.cs
- ExceptionHandlersDesigner.cs
- AppLevelCompilationSectionCache.cs
- ListParaClient.cs
- wgx_sdk_version.cs
- BitmapPalettes.cs
- WindowsSysHeader.cs
- LeafCellTreeNode.cs
- KeyGesture.cs
- DynamicScriptObject.cs
- PerfCounterSection.cs
- WebPartExportVerb.cs
- DictionaryBase.cs
- TextTreeObjectNode.cs
- ValidationResult.cs
- PersonalizationProvider.cs
- IxmlLineInfo.cs
- ToolStripItemTextRenderEventArgs.cs
- ScrollContentPresenter.cs
- WebScriptServiceHost.cs
- SafeEventLogReadHandle.cs
- ModifiableIteratorCollection.cs
- SQLStringStorage.cs
- ItemDragEvent.cs
- WpfWebRequestHelper.cs
- DataSet.cs
- IconHelper.cs
- CodeTypeReference.cs
- ContractCodeDomInfo.cs
- DoubleAnimationUsingKeyFrames.cs
- PackageRelationshipSelector.cs
- SafeNativeMethods.cs
- AccessText.cs
- DocumentApplicationJournalEntry.cs
- Timeline.cs
- Attribute.cs
- AsyncDataRequest.cs
- QueryResultOp.cs
- ServiceOperationInvoker.cs
- XslCompiledTransform.cs
- Multiply.cs
- DCSafeHandle.cs
- ProcessHostConfigUtils.cs
- Underline.cs
- AttachedPropertyMethodSelector.cs
- BufferModeSettings.cs
- DecimalConverter.cs
- ListenerConnectionModeReader.cs
- SchemaMerger.cs
- PropertyItemInternal.cs
- QueryOperationResponseOfT.cs
- ToolstripProfessionalRenderer.cs
- DbException.cs
- TemplatedMailWebEventProvider.cs
- HideDisabledControlAdapter.cs
- ConnectionStringsExpressionBuilder.cs
- CatalogZone.cs
- DataView.cs
- PassportAuthenticationModule.cs
- _Connection.cs
- WebResponse.cs
- TemplateManager.cs
- TransactionFilter.cs
- HandlerFactoryWrapper.cs
- ConfigurationLoaderException.cs
- XmlSchemaImport.cs
- ImageKeyConverter.cs
- ObjectToken.cs
- PrefixQName.cs
- CssTextWriter.cs
- TypeUsageBuilder.cs
- MobileResource.cs
- UidPropertyAttribute.cs
- DataRowCollection.cs
- Substitution.cs
- SqlDeflator.cs
- InternalTransaction.cs
- MessageQuerySet.cs
- LayoutSettings.cs
- DocumentViewerHelper.cs