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 / 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
- recordstatefactory.cs
- Misc.cs
- Logging.cs
- TextSelectionHelper.cs
- arabicshape.cs
- PerfCounterSection.cs
- ParamArrayAttribute.cs
- ButtonColumn.cs
- StylusTip.cs
- datacache.cs
- SchemaDeclBase.cs
- Command.cs
- FragmentQueryProcessor.cs
- FileDialog_Vista_Interop.cs
- xmlfixedPageInfo.cs
- BaseAppDomainProtocolHandler.cs
- _NegoStream.cs
- InputLanguageProfileNotifySink.cs
- Padding.cs
- ClientBuildManager.cs
- AdornedElementPlaceholder.cs
- DataObjectFieldAttribute.cs
- XmlWrappingWriter.cs
- Rule.cs
- Composition.cs
- CommandConverter.cs
- MouseEventArgs.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- QueryPageSettingsEventArgs.cs
- Rfc2898DeriveBytes.cs
- ObservableDictionary.cs
- PolicyLevel.cs
- LoginCancelEventArgs.cs
- UnmanagedMemoryStreamWrapper.cs
- SafeNativeMethodsOther.cs
- TabletDevice.cs
- BamlResourceSerializer.cs
- HtmlInputFile.cs
- MeasureItemEvent.cs
- CFGGrammar.cs
- XmlDocumentSerializer.cs
- RevocationPoint.cs
- TextDecorationCollection.cs
- Documentation.cs
- TraceHandler.cs
- ItemsPanelTemplate.cs
- XmlSerializerSection.cs
- DesignerActionGlyph.cs
- Base64Encoder.cs
- RoleService.cs
- XmlIterators.cs
- ResourceProviderFactory.cs
- ActiveXSite.cs
- Point.cs
- ColorMap.cs
- SystemParameters.cs
- TextBreakpoint.cs
- BuildResult.cs
- TypeSystem.cs
- KnowledgeBase.cs
- XomlCompilerParameters.cs
- GrammarBuilderDictation.cs
- ProfileService.cs
- OleDbRowUpdatingEvent.cs
- ControlDesigner.cs
- ValidationPropertyAttribute.cs
- mansign.cs
- SynchronizationLockException.cs
- WmlSelectionListAdapter.cs
- RemoteWebConfigurationHostServer.cs
- PermissionSetTriple.cs
- StrongNameKeyPair.cs
- NumberFormatInfo.cs
- arclist.cs
- PolicyValidationException.cs
- GC.cs
- RequestResizeEvent.cs
- HttpRawResponse.cs
- StreamGeometry.cs
- SimpleTypesSurrogate.cs
- AttachInfo.cs
- CreateUserWizard.cs
- SingleTagSectionHandler.cs
- XmlImplementation.cs
- ControlBuilderAttribute.cs
- SelectionRangeConverter.cs
- AccessorTable.cs
- PictureBox.cs
- BaseDataBoundControl.cs
- LinqDataSourceContextEventArgs.cs
- KeyNotFoundException.cs
- NamespaceQuery.cs
- ValidationSummaryDesigner.cs
- EnumMember.cs
- ViewStateException.cs
- LinearGradientBrush.cs
- RowTypePropertyElement.cs
- QueryTaskGroupState.cs
- BufferAllocator.cs
- NameValuePermission.cs