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
- sapiproxy.cs
- ErrorProvider.cs
- InvalidPropValue.cs
- MimeMapping.cs
- PageParserFilter.cs
- ValueType.cs
- NodeLabelEditEvent.cs
- Baml2006ReaderSettings.cs
- PreDigestedSignedInfo.cs
- UnknownMessageReceivedEventArgs.cs
- FrameworkContentElement.cs
- SQLInt64Storage.cs
- FilterableAttribute.cs
- MenuItemCollectionEditor.cs
- ProxyGenerator.cs
- ClientEventManager.cs
- PrivilegeNotHeldException.cs
- xdrvalidator.cs
- XmlCountingReader.cs
- EntryIndex.cs
- DataGridState.cs
- AuthorizationRule.cs
- PublisherMembershipCondition.cs
- AxHost.cs
- VirtualizedContainerService.cs
- DefaultAssemblyResolver.cs
- AsyncCompletedEventArgs.cs
- HTMLTextWriter.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TreeNode.cs
- PointF.cs
- MultipartIdentifier.cs
- SoapParser.cs
- SynchronizationContext.cs
- ServiceSecurityAuditBehavior.cs
- GeneratedContractType.cs
- KeyedCollection.cs
- EpmHelper.cs
- ConstNode.cs
- DrawListViewColumnHeaderEventArgs.cs
- DependencyObjectProvider.cs
- HtmlWindow.cs
- XmlBinaryReaderSession.cs
- Int32RectValueSerializer.cs
- TraceSection.cs
- WebPartUtil.cs
- EditCommandColumn.cs
- ComponentDispatcherThread.cs
- VisualTreeHelper.cs
- SqlUtil.cs
- XmlCodeExporter.cs
- LoginView.cs
- DependencyPropertyAttribute.cs
- DbException.cs
- FontEmbeddingManager.cs
- ParserContext.cs
- UndirectedGraph.cs
- RowBinding.cs
- SystemIPAddressInformation.cs
- StringResourceManager.cs
- RuntimeArgumentHandle.cs
- BooleanFunctions.cs
- FilePrompt.cs
- AmbientLight.cs
- ComAwareEventInfo.cs
- DataGridViewRowConverter.cs
- UIPermission.cs
- FixedSOMPageConstructor.cs
- SHA1Managed.cs
- SvcMapFileLoader.cs
- FormViewUpdateEventArgs.cs
- RepeaterItemEventArgs.cs
- FixedPosition.cs
- TraceEventCache.cs
- WebPartDisplayModeEventArgs.cs
- EmptyControlCollection.cs
- XPathDocumentBuilder.cs
- TrustLevelCollection.cs
- CollectionType.cs
- PerformanceCounterNameAttribute.cs
- ProcessStartInfo.cs
- VisualProxy.cs
- RepeaterItemEventArgs.cs
- CorrelationActionMessageFilter.cs
- EntityConnectionStringBuilder.cs
- ScrollChrome.cs
- AssemblySettingAttributes.cs
- CssStyleCollection.cs
- ResponseBodyWriter.cs
- StructuralObject.cs
- Walker.cs
- IncrementalReadDecoders.cs
- NativeMethods.cs
- RegexGroup.cs
- FixedPageProcessor.cs
- DurableRuntimeValidator.cs
- ModelItemCollectionImpl.cs
- SoapElementAttribute.cs
- CallSite.cs
- JavaScriptString.cs