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; } //----------------------------------------------- // 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
- ComponentDesigner.cs
- ImmComposition.cs
- DirtyTextRange.cs
- XmlImplementation.cs
- DataSourceComponent.cs
- ReliableMessagingVersion.cs
- ProcessHostConfigUtils.cs
- PointLightBase.cs
- IncrementalHitTester.cs
- HuffCodec.cs
- TypeInitializationException.cs
- FontDifferentiator.cs
- Win32Exception.cs
- DataBindingCollectionEditor.cs
- ItemDragEvent.cs
- SQLDecimal.cs
- BindingWorker.cs
- PixelFormat.cs
- ImageButton.cs
- _StreamFramer.cs
- EraserBehavior.cs
- OledbConnectionStringbuilder.cs
- CodeExpressionStatement.cs
- SortKey.cs
- ChtmlCalendarAdapter.cs
- SafeNativeMethods.cs
- MessageSecurityVersion.cs
- CustomCredentialPolicy.cs
- HtmlPanelAdapter.cs
- UnitControl.cs
- DisplayNameAttribute.cs
- EntityDescriptor.cs
- EndpointDiscoveryMetadata11.cs
- SynchronizedDispatch.cs
- ProxyWebPartManager.cs
- Menu.cs
- DefaultPrintController.cs
- OperationFormatter.cs
- FilteredAttributeCollection.cs
- DependencyObjectType.cs
- HttpHostedTransportConfiguration.cs
- WaitForChangedResult.cs
- FontInfo.cs
- XmlUtf8RawTextWriter.cs
- IODescriptionAttribute.cs
- X509WindowsSecurityToken.cs
- DataGridViewSortCompareEventArgs.cs
- FileNotFoundException.cs
- embossbitmapeffect.cs
- BuildProviderUtils.cs
- XmlNode.cs
- SmuggledIUnknown.cs
- clipboard.cs
- ComboBoxAutomationPeer.cs
- ResolveDuplexAsyncResult.cs
- SharedStream.cs
- XamlRtfConverter.cs
- HandoffBehavior.cs
- BaseTemplateParser.cs
- XamlReaderHelper.cs
- Atom10FeedFormatter.cs
- TableStyle.cs
- XsdCachingReader.cs
- ExtenderControl.cs
- CollaborationHelperFunctions.cs
- MessageQueuePermissionEntryCollection.cs
- EventSource.cs
- HtmlTableCell.cs
- VerificationException.cs
- SoapIgnoreAttribute.cs
- RadioButtonList.cs
- HistoryEventArgs.cs
- ProjectionPruner.cs
- TypedTableBaseExtensions.cs
- TableRowGroup.cs
- TemplateXamlTreeBuilder.cs
- HttpVersion.cs
- DateTimeOffset.cs
- isolationinterop.cs
- SemaphoreSlim.cs
- XmlSchemaAttribute.cs
- ImageMapEventArgs.cs
- SimplePropertyEntry.cs
- AssemblyBuilder.cs
- PropertyMetadata.cs
- GeometryDrawing.cs
- TrustSection.cs
- FigureHelper.cs
- PrintDialog.cs
- UpdatePanelTrigger.cs
- CrossSiteScriptingValidation.cs
- ServiceHttpHandlerFactory.cs
- CallContext.cs
- StringAnimationBase.cs
- CallbackHandler.cs
- ChameleonKey.cs
- TextBoxBase.cs
- BackgroundFormatInfo.cs
- LocalFileSettingsProvider.cs
- XmlComment.cs