Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilIterator.cs / 1 / QilIterator.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
using System;
using System.Diagnostics;
namespace System.Xml.Xsl.Qil {
///
/// View over a Qil iterator node (For or Let).
///
internal class QilIterator : QilReference {
private QilNode binding;
//-----------------------------------------------
// Constructor
//-----------------------------------------------
///
/// Construct an iterator
///
public QilIterator(QilNodeType nodeType, QilNode binding) : base(nodeType) {
Binding = binding;
}
//-----------------------------------------------
// IList methods -- override
//-----------------------------------------------
public override int Count {
get { return 1; }
}
public override QilNode this[int index] {
get { if (index != 0) throw new IndexOutOfRangeException(); return this.binding; }
set { if (index != 0) throw new IndexOutOfRangeException(); this.binding = value; }
}
//-----------------------------------------------
// QilIterator methods
//-----------------------------------------------
///
/// Expression which is bound to the iterator.
///
public QilNode Binding {
get { return this.binding; }
set { this.binding = 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 iterator node (For or Let).
///
internal class QilIterator : QilReference {
private QilNode binding;
//-----------------------------------------------
// Constructor
//-----------------------------------------------
///
/// Construct an iterator
///
public QilIterator(QilNodeType nodeType, QilNode binding) : base(nodeType) {
Binding = binding;
}
//-----------------------------------------------
// IList methods -- override
//-----------------------------------------------
public override int Count {
get { return 1; }
}
public override QilNode this[int index] {
get { if (index != 0) throw new IndexOutOfRangeException(); return this.binding; }
set { if (index != 0) throw new IndexOutOfRangeException(); this.binding = value; }
}
//-----------------------------------------------
// QilIterator methods
//-----------------------------------------------
///
/// Expression which is bound to the iterator.
///
public QilNode Binding {
get { return this.binding; }
set { this.binding = 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
- WindowsGraphics2.cs
- DateTimeUtil.cs
- NativeMethods.cs
- XmlConvert.cs
- Site.cs
- ContainerUtilities.cs
- SpeechEvent.cs
- HMACSHA256.cs
- MSAANativeProvider.cs
- DataList.cs
- DBConnectionString.cs
- MergeFailedEvent.cs
- UnknownWrapper.cs
- SamlAuthorityBinding.cs
- GcSettings.cs
- WebPartConnectionsEventArgs.cs
- DiagnosticTrace.cs
- HttpResponse.cs
- MultiTrigger.cs
- TemplatedMailWebEventProvider.cs
- SafeFindHandle.cs
- BinaryExpression.cs
- _BasicClient.cs
- DebugHandleTracker.cs
- ListenerElementsCollection.cs
- SerTrace.cs
- BamlTreeUpdater.cs
- WindowInteractionStateTracker.cs
- ActivityExecutor.cs
- StorageEntityContainerMapping.cs
- FrugalMap.cs
- SimpleMailWebEventProvider.cs
- WebServiceResponse.cs
- SspiSecurityToken.cs
- MenuAdapter.cs
- HashStream.cs
- XmlWrappingReader.cs
- CreateRefExpr.cs
- XmlSchemaException.cs
- UriSection.cs
- RelationshipType.cs
- SqlBulkCopyColumnMapping.cs
- DocumentsTrace.cs
- SecurityTokenParameters.cs
- StaticTextPointer.cs
- SurrogateEncoder.cs
- Window.cs
- SqlDataSourceFilteringEventArgs.cs
- HealthMonitoringSection.cs
- GuidelineCollection.cs
- IsolatedStorage.cs
- ObjectFullSpanRewriter.cs
- SqlParameterizer.cs
- ComponentSerializationService.cs
- SyntaxCheck.cs
- SecurityProtocol.cs
- QueryInterceptorAttribute.cs
- PersonalizationStateInfo.cs
- ButtonChrome.cs
- FrameworkObject.cs
- HyperLinkStyle.cs
- GestureRecognizer.cs
- FrameworkContentElement.cs
- ModifyActivitiesPropertyDescriptor.cs
- GridViewUpdateEventArgs.cs
- FontWeight.cs
- TextBoxBase.cs
- QuadraticBezierSegment.cs
- ListBase.cs
- ElasticEase.cs
- DbMetaDataColumnNames.cs
- StringCollection.cs
- ToolStripSystemRenderer.cs
- XmlAttribute.cs
- InsufficientMemoryException.cs
- XmlText.cs
- DependencyPropertyChangedEventArgs.cs
- DataRelationPropertyDescriptor.cs
- _AutoWebProxyScriptWrapper.cs
- PropertiesTab.cs
- AQNBuilder.cs
- SplitterPanel.cs
- MethodRental.cs
- CachedRequestParams.cs
- X509Certificate.cs
- FilterEventArgs.cs
- VirtualDirectoryMapping.cs
- InvokePattern.cs
- ThreadExceptionEvent.cs
- RowToParametersTransformer.cs
- BaseDataBoundControl.cs
- WebPartDescriptionCollection.cs
- DropShadowEffect.cs
- MultiBinding.cs
- DBPropSet.cs
- SQLString.cs
- DefaultValueTypeConverter.cs
- EventlogProvider.cs
- odbcmetadatacolumnnames.cs
- FaultBookmark.cs