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
- AuthenticationService.cs
- ProbeMatchesMessageCD1.cs
- InstanceLockLostException.cs
- FixedSOMSemanticBox.cs
- AddInAttribute.cs
- QueryCacheEntry.cs
- ColumnWidthChangedEvent.cs
- UriSection.cs
- SqlCachedBuffer.cs
- Vector3DAnimationUsingKeyFrames.cs
- WaitForChangedResult.cs
- OutputCacheProfileCollection.cs
- HttpListenerRequest.cs
- Vector.cs
- IndexExpression.cs
- SignedInfo.cs
- ManagementScope.cs
- ErrorHandler.cs
- HttpPostedFile.cs
- log.cs
- TemplatePagerField.cs
- ViewGenerator.cs
- CodeTypeParameterCollection.cs
- AttributeEmitter.cs
- TypeValidationEventArgs.cs
- SimpleLine.cs
- RedirectionProxy.cs
- DeflateStream.cs
- IdentifierService.cs
- LoadWorkflowByInstanceKeyCommand.cs
- TagPrefixCollection.cs
- HorizontalAlignConverter.cs
- RadioButton.cs
- CloseCollectionAsyncResult.cs
- VoiceSynthesis.cs
- DocumentOrderQuery.cs
- MultipartContentParser.cs
- MobileTemplatedControlDesigner.cs
- ColorContextHelper.cs
- ImageCodecInfo.cs
- CustomActivityDesigner.cs
- WebControlAdapter.cs
- SQLInt64Storage.cs
- PropertyEmitterBase.cs
- TypeLibConverter.cs
- TextParagraph.cs
- XmlSchemaInfo.cs
- TreeNodeMouseHoverEvent.cs
- SerializationAttributes.cs
- LicenseProviderAttribute.cs
- Point3DCollectionConverter.cs
- EncodingInfo.cs
- FilterQuery.cs
- CheckPair.cs
- EntityDesignerUtils.cs
- XmlC14NWriter.cs
- WebRequestModuleElementCollection.cs
- FontNamesConverter.cs
- NewItemsContextMenuStrip.cs
- RegistryPermission.cs
- SurrogateSelector.cs
- CryptoHelper.cs
- MeasurementDCInfo.cs
- EntityContainer.cs
- TagMapCollection.cs
- Help.cs
- ColorContextHelper.cs
- PluralizationServiceUtil.cs
- DetailsViewUpdatedEventArgs.cs
- NonVisualControlAttribute.cs
- WebFaultException.cs
- WebPartVerb.cs
- InheritanceContextHelper.cs
- ToolStripHighContrastRenderer.cs
- ListChangedEventArgs.cs
- CheckoutException.cs
- MessagePropertyFilter.cs
- VirtualPathProvider.cs
- XmlNavigatorStack.cs
- SqlDataAdapter.cs
- Animatable.cs
- SystemGatewayIPAddressInformation.cs
- SourceInterpreter.cs
- ReferenceEqualityComparer.cs
- FlowDocumentPaginator.cs
- WindowsTab.cs
- TextProperties.cs
- ProcessModelSection.cs
- ToolStripOverflowButton.cs
- HtmlContainerControl.cs
- Rect3DConverter.cs
- FontStretches.cs
- FormView.cs
- ClientUrlResolverWrapper.cs
- FrameAutomationPeer.cs
- ADRoleFactory.cs
- DrawingCollection.cs
- TypeUtil.cs
- DocumentsTrace.cs
- BindToObject.cs