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
- RangeValueProviderWrapper.cs
- ChangePassword.cs
- XamlToRtfWriter.cs
- LinearGradientBrush.cs
- UIElementParagraph.cs
- CodeDOMProvider.cs
- LingerOption.cs
- InvalidOperationException.cs
- FontStretchConverter.cs
- MultipleViewPatternIdentifiers.cs
- MailSettingsSection.cs
- Parser.cs
- ImportOptions.cs
- ExtenderHelpers.cs
- Operators.cs
- ServicesUtilities.cs
- OdbcDataReader.cs
- RoleManagerModule.cs
- Normalization.cs
- SelectedDatesCollection.cs
- LogEntrySerializationException.cs
- WebColorConverter.cs
- SoapReflectionImporter.cs
- TransactionState.cs
- DBAsyncResult.cs
- MonthCalendarDesigner.cs
- XmlSchemaSimpleTypeRestriction.cs
- SpecialFolderEnumConverter.cs
- ListView.cs
- UrlMappingsModule.cs
- LineGeometry.cs
- DataControlField.cs
- MsmqVerifier.cs
- CrossSiteScriptingValidation.cs
- TableCell.cs
- GridItem.cs
- KeyGestureValueSerializer.cs
- StateRuntime.cs
- BaseTemplateCodeDomTreeGenerator.cs
- String.cs
- RepeaterItemCollection.cs
- DateTimeValueSerializer.cs
- FacetDescription.cs
- WebServiceTypeData.cs
- TextEditorContextMenu.cs
- CreatingCookieEventArgs.cs
- DispatchProxy.cs
- Int16Storage.cs
- ToolStripSettings.cs
- DbExpressionBuilder.cs
- _HeaderInfo.cs
- Brush.cs
- RequestTimeoutManager.cs
- ConfigurationHelpers.cs
- WeakRefEnumerator.cs
- SmtpTransport.cs
- AstTree.cs
- TextPointer.cs
- SessionStateItemCollection.cs
- ThreadExceptionDialog.cs
- ImageInfo.cs
- Utils.cs
- CatalogZone.cs
- WebRequest.cs
- SqlDelegatedTransaction.cs
- NameValuePermission.cs
- ServerType.cs
- CheckBoxFlatAdapter.cs
- SoapAttributes.cs
- _SSPIWrapper.cs
- BuilderPropertyEntry.cs
- DoubleLinkListEnumerator.cs
- InlineCollection.cs
- RegexInterpreter.cs
- NumberAction.cs
- TextOutput.cs
- MessageQueuePermission.cs
- IriParsingElement.cs
- BuildProviderAppliesToAttribute.cs
- DataSourceExpression.cs
- MultilineStringConverter.cs
- HandledMouseEvent.cs
- HandledMouseEvent.cs
- NotConverter.cs
- WebSysDisplayNameAttribute.cs
- ListBox.cs
- PersistencePipeline.cs
- QueryStringParameter.cs
- DBConcurrencyException.cs
- Effect.cs
- RealProxy.cs
- StrokeNode.cs
- SqlExpander.cs
- ResourceReferenceExpression.cs
- ConstraintConverter.cs
- Serializer.cs
- ConfigsHelper.cs
- LineProperties.cs
- TextEditorLists.cs
- PolyQuadraticBezierSegment.cs