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
- PointLight.cs
- PagesChangedEventArgs.cs
- Stroke2.cs
- AcceleratedTokenProvider.cs
- MailAddressCollection.cs
- SQLBytesStorage.cs
- ObjectReaderCompiler.cs
- WebPartConnectionCollection.cs
- XhtmlBasicSelectionListAdapter.cs
- XmlSchemaAttribute.cs
- MimeTypeMapper.cs
- ScaleTransform3D.cs
- GradientStopCollection.cs
- returneventsaver.cs
- BaseDataList.cs
- BuildProvidersCompiler.cs
- VolatileResourceManager.cs
- PrePostDescendentsWalker.cs
- GenericXmlSecurityToken.cs
- Table.cs
- ActiveXContainer.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- FieldToken.cs
- InputReferenceExpression.cs
- StubHelpers.cs
- DeferredReference.cs
- DispatcherHookEventArgs.cs
- TreeNode.cs
- ForEachAction.cs
- DragDrop.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ReadOnlyActivityGlyph.cs
- DataObjectEventArgs.cs
- OperationAbortedException.cs
- DocumentPageView.cs
- SessionStateItemCollection.cs
- PackUriHelper.cs
- InitializerFacet.cs
- StructuralType.cs
- ExpressionUtilities.cs
- XPathChildIterator.cs
- RootBrowserWindow.cs
- HttpInputStream.cs
- SettingsSavedEventArgs.cs
- RestClientProxyHandler.cs
- RootProfilePropertySettingsCollection.cs
- XmlReaderSettings.cs
- COM2IPerPropertyBrowsingHandler.cs
- DragCompletedEventArgs.cs
- FormsAuthenticationTicket.cs
- QuadraticEase.cs
- EditingScope.cs
- FrameworkPropertyMetadata.cs
- CodeChecksumPragma.cs
- DefaultPrintController.cs
- InnerItemCollectionView.cs
- ArgumentException.cs
- WindowsStreamSecurityBindingElement.cs
- WebPartUserCapability.cs
- sortedlist.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- Aes.cs
- documentsequencetextpointer.cs
- BinaryMethodMessage.cs
- EmptyReadOnlyDictionaryInternal.cs
- BindingNavigator.cs
- JsonWriter.cs
- TcpChannelHelper.cs
- TableParaClient.cs
- ToolStripPanelSelectionBehavior.cs
- DataSourceProvider.cs
- DesignerGenericWebPart.cs
- PassportPrincipal.cs
- PeerOutputChannel.cs
- StorageConditionPropertyMapping.cs
- COM2AboutBoxPropertyDescriptor.cs
- RelationshipType.cs
- NameSpaceEvent.cs
- OneOfElement.cs
- WebPartsSection.cs
- RelatedImageListAttribute.cs
- SystemResourceHost.cs
- DbTransaction.cs
- SqlDelegatedTransaction.cs
- FormViewInsertEventArgs.cs
- ScrollBarAutomationPeer.cs
- ExpressionTextBoxAutomationPeer.cs
- RuleSettingsCollection.cs
- SqlAggregateChecker.cs
- InfoCardClaimCollection.cs
- PassportPrincipal.cs
- UpdateCompiler.cs
- TextEndOfParagraph.cs
- ProfileSettings.cs
- ObjectDataSourceSelectingEventArgs.cs
- BindingMAnagerBase.cs
- WebConfigurationManager.cs
- FixedTextPointer.cs
- RemotingSurrogateSelector.cs
- SiteMapDesignerDataSourceView.cs