Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilIterator.cs / 1305376 / 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
- WebPartConnectionsCancelVerb.cs
- mediaclock.cs
- WebPartCatalogAddVerb.cs
- MouseActionValueSerializer.cs
- SqlVersion.cs
- SmiContextFactory.cs
- WebDescriptionAttribute.cs
- LineBreakRecord.cs
- EventLogEntryCollection.cs
- GridProviderWrapper.cs
- TextSegment.cs
- Int64Storage.cs
- BooleanExpr.cs
- VisualStyleRenderer.cs
- HtmlControl.cs
- Rect3DConverter.cs
- XhtmlBasicImageAdapter.cs
- CodeMemberProperty.cs
- Vector3DKeyFrameCollection.cs
- XmlDataSource.cs
- KeyedHashAlgorithm.cs
- CodeGenerator.cs
- HttpWebRequestElement.cs
- GZipDecoder.cs
- KnownTypesHelper.cs
- ConfigXmlElement.cs
- WebPartVerbsEventArgs.cs
- TextServicesCompartmentEventSink.cs
- WinInetCache.cs
- CustomErrorsSection.cs
- TraceEventCache.cs
- FixedLineResult.cs
- TypeSystemProvider.cs
- SmtpClient.cs
- RepeaterDesigner.cs
- HotSpot.cs
- GatewayIPAddressInformationCollection.cs
- DecoderFallback.cs
- SectionXmlInfo.cs
- Drawing.cs
- StringAnimationUsingKeyFrames.cs
- StreamReader.cs
- ModelPerspective.cs
- BoolExpressionVisitors.cs
- InternalPermissions.cs
- StylusShape.cs
- GeneralTransformCollection.cs
- QuerySetOp.cs
- NameValueConfigurationCollection.cs
- AvTraceFormat.cs
- CultureInfoConverter.cs
- WebPartMenu.cs
- DocumentPageViewAutomationPeer.cs
- InvalidPropValue.cs
- ToolStripComboBox.cs
- DirectoryInfo.cs
- AppDomainUnloadedException.cs
- RoutedEventHandlerInfo.cs
- WebBrowser.cs
- XmlSchemaDocumentation.cs
- PropertyMappingExceptionEventArgs.cs
- StorageMappingItemLoader.cs
- HwndSourceKeyboardInputSite.cs
- ManagementNamedValueCollection.cs
- Hash.cs
- WebOperationContext.cs
- TcpClientChannel.cs
- SystemInformation.cs
- OciEnlistContext.cs
- HttpPostedFile.cs
- PEFileReader.cs
- DeclaredTypeValidator.cs
- LocatorBase.cs
- PersonalizationProviderHelper.cs
- MetadataItemEmitter.cs
- Part.cs
- PeerNameRecordCollection.cs
- OleServicesContext.cs
- RegistrationServices.cs
- BindingsCollection.cs
- LabelDesigner.cs
- CssClassPropertyAttribute.cs
- InstallerTypeAttribute.cs
- ObjectDataSourceDisposingEventArgs.cs
- AutomationIdentifierGuids.cs
- DBSchemaTable.cs
- SystemParameters.cs
- XmlSchemaCollection.cs
- MetadataUtil.cs
- SecurityHeaderTokenResolver.cs
- EventDescriptor.cs
- EditorPart.cs
- xmlsaver.cs
- TraceListener.cs
- TabControlCancelEvent.cs
- AnalyzedTree.cs
- Icon.cs
- WebPartConnectionsCloseVerb.cs
- ParameterToken.cs
- Journal.cs