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 / 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; } //----------------------------------------------- // IListmethods -- 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; } //----------------------------------------------- // IListmethods -- 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
- PriorityQueue.cs
- MDIWindowDialog.cs
- ConfigurationManagerInternalFactory.cs
- exports.cs
- ServiceOperation.cs
- CodeMethodInvokeExpression.cs
- WindowInteractionStateTracker.cs
- HttpsTransportElement.cs
- XmlSchemaAll.cs
- HostedImpersonationContext.cs
- ImageKeyConverter.cs
- FileUtil.cs
- TemplateXamlTreeBuilder.cs
- NullableConverter.cs
- DropShadowBitmapEffect.cs
- FormViewPageEventArgs.cs
- Decoder.cs
- SchemaTableColumn.cs
- input.cs
- HotCommands.cs
- DirectionalLight.cs
- XmlSchemaInfo.cs
- CharEnumerator.cs
- MarkupExtensionParser.cs
- RoutedPropertyChangedEventArgs.cs
- NetworkInterface.cs
- MultiByteCodec.cs
- StandardBindingReliableSessionElement.cs
- CheckBox.cs
- DataStorage.cs
- ScriptDescriptor.cs
- ModelItemDictionaryImpl.cs
- SHA256Managed.cs
- MultiPropertyDescriptorGridEntry.cs
- CreateUserWizard.cs
- activationcontext.cs
- CompositeDataBoundControl.cs
- DataStreams.cs
- XmlNamedNodeMap.cs
- LocatorPartList.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- XmlILTrace.cs
- _UriTypeConverter.cs
- StringCollection.cs
- Utilities.cs
- processwaithandle.cs
- ToolStripItem.cs
- SourceElementsCollection.cs
- BamlLocalizationDictionary.cs
- Effect.cs
- ParseElement.cs
- CodeIdentifiers.cs
- ToolStripLocationCancelEventArgs.cs
- StrongNameUtility.cs
- Membership.cs
- AutomationIdentifierGuids.cs
- StylusCaptureWithinProperty.cs
- XmlSerializationWriter.cs
- FamilyTypefaceCollection.cs
- StaticTextPointer.cs
- Span.cs
- Vector3D.cs
- HttpClientCredentialType.cs
- _HeaderInfo.cs
- TextElementCollection.cs
- PhonemeEventArgs.cs
- NavigationPropertyEmitter.cs
- TypographyProperties.cs
- CngAlgorithmGroup.cs
- RowSpanVector.cs
- AudioFormatConverter.cs
- ELinqQueryState.cs
- PieceDirectory.cs
- RootBrowserWindow.cs
- ApplicationServiceManager.cs
- ScrollChrome.cs
- documentsequencetextpointer.cs
- FileChangesMonitor.cs
- CompositeControl.cs
- AssemblyBuilder.cs
- DefaultBinder.cs
- CodeConstructor.cs
- SecUtil.cs
- Util.cs
- Not.cs
- TrueReadOnlyCollection.cs
- SchemaName.cs
- LambdaCompiler.Logical.cs
- InplaceBitmapMetadataWriter.cs
- TreeView.cs
- TraceUtils.cs
- TemplateBamlTreeBuilder.cs
- CacheHelper.cs
- BinaryUtilClasses.cs
- DataGridSortCommandEventArgs.cs
- OdbcParameter.cs
- OdbcTransaction.cs
- AssemblyAttributes.cs
- RSAProtectedConfigurationProvider.cs
- TimelineCollection.cs