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
- ColorIndependentAnimationStorage.cs
- DataBinding.cs
- ToolStripEditorManager.cs
- SystemSounds.cs
- BinaryCommonClasses.cs
- MembershipValidatePasswordEventArgs.cs
- _NTAuthentication.cs
- RegexCapture.cs
- IsolatedStorageFile.cs
- KeyPullup.cs
- EnumerableCollectionView.cs
- SqlParameterizer.cs
- BooleanAnimationUsingKeyFrames.cs
- SingleResultAttribute.cs
- counter.cs
- StyleCollection.cs
- ZipFileInfoCollection.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- AccessDataSourceView.cs
- QilCloneVisitor.cs
- TableLayoutPanelDesigner.cs
- WebPartActionVerb.cs
- ExpressionBuilderCollection.cs
- Pts.cs
- CommandSet.cs
- Parser.cs
- QueryStack.cs
- ToggleProviderWrapper.cs
- Polyline.cs
- ColorConvertedBitmap.cs
- BitStream.cs
- MatrixCamera.cs
- SqlWebEventProvider.cs
- PixelFormats.cs
- TextEffect.cs
- LexicalChunk.cs
- FontWeightConverter.cs
- InvalidEnumArgumentException.cs
- DbRetry.cs
- _TimerThread.cs
- ProcessHostFactoryHelper.cs
- CommandID.cs
- FormView.cs
- IteratorDescriptor.cs
- MatchingStyle.cs
- DoubleLink.cs
- SoapDocumentMethodAttribute.cs
- FixedSOMPageConstructor.cs
- SqlCacheDependency.cs
- ControlAdapter.cs
- SystemResourceKey.cs
- UdpSocket.cs
- AppearanceEditorPart.cs
- PathParser.cs
- HttpModulesSection.cs
- ReadOnlyTernaryTree.cs
- ExtendedTransformFactory.cs
- EncodingNLS.cs
- ModelVisual3D.cs
- DeferredRunTextReference.cs
- SchemaImporterExtensionElement.cs
- RecipientInfo.cs
- ObjectCache.cs
- PaintValueEventArgs.cs
- DecimalSumAggregationOperator.cs
- DictionaryManager.cs
- TextTreeText.cs
- EdmEntityTypeAttribute.cs
- CompModSwitches.cs
- FixedTextPointer.cs
- InvalidAsynchronousStateException.cs
- PlainXmlSerializer.cs
- GenericEnumConverter.cs
- SerializerWriterEventHandlers.cs
- WCFBuildProvider.cs
- Int32AnimationUsingKeyFrames.cs
- DesignBinding.cs
- _ListenerRequestStream.cs
- IArgumentProvider.cs
- HttpCookie.cs
- SQLDateTime.cs
- DataServiceException.cs
- BCryptHashAlgorithm.cs
- SettingsSection.cs
- WebCategoryAttribute.cs
- ObservableCollectionDefaultValueFactory.cs
- smtppermission.cs
- InkCanvasInnerCanvas.cs
- FixedSOMTable.cs
- ErrorTableItemStyle.cs
- WaitHandleCannotBeOpenedException.cs
- FixedSOMFixedBlock.cs
- Vector.cs
- XmlHelper.cs
- ImageClickEventArgs.cs
- LoginView.cs
- QuaternionRotation3D.cs
- Event.cs
- EventArgs.cs
- EffectiveValueEntry.cs