Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SmtpNegotiateAuthenticationModule.cs
- recordstatescratchpad.cs
- FileDialog.cs
- ColumnResult.cs
- DataServiceExpressionVisitor.cs
- TabItemAutomationPeer.cs
- SettingsSection.cs
- controlskin.cs
- LoginView.cs
- LazyInitializer.cs
- InfoCardSymmetricAlgorithm.cs
- Geometry3D.cs
- MarkupObject.cs
- ParseChildrenAsPropertiesAttribute.cs
- DBNull.cs
- LinqDataSourceValidationException.cs
- DrawingGroup.cs
- QilVisitor.cs
- ServiceInfoCollection.cs
- SmtpCommands.cs
- PropertyGridView.cs
- PathSegment.cs
- ProcessInputEventArgs.cs
- MenuItem.cs
- VisualSerializer.cs
- HybridDictionary.cs
- RecognitionResult.cs
- infer.cs
- _LocalDataStoreMgr.cs
- SafeLibraryHandle.cs
- HttpRequest.cs
- StorageAssociationTypeMapping.cs
- AuthenticationSection.cs
- TracedNativeMethods.cs
- PopupRootAutomationPeer.cs
- WorkflowInstanceTerminatedRecord.cs
- ViewCellSlot.cs
- SafeCertificateStore.cs
- XmlSchemaAnnotation.cs
- PingOptions.cs
- MDIControlStrip.cs
- EntityDesignerDataSourceView.cs
- ProcessRequestAsyncResult.cs
- HighContrastHelper.cs
- BooleanKeyFrameCollection.cs
- NamespaceEmitter.cs
- ToolStripItemCollection.cs
- PromptEventArgs.cs
- GridEntry.cs
- ThreadStaticAttribute.cs
- DbDataRecord.cs
- SecurityStateEncoder.cs
- NullReferenceException.cs
- TouchFrameEventArgs.cs
- DetailsViewPagerRow.cs
- Application.cs
- ExpandSegment.cs
- LOSFormatter.cs
- XmlSerializableWriter.cs
- TerminateWorkflow.cs
- FrameworkElementAutomationPeer.cs
- MobileControlsSectionHelper.cs
- Rotation3DAnimationBase.cs
- BinHexEncoder.cs
- WindowsFormsLinkLabel.cs
- diagnosticsswitches.cs
- TraceUtility.cs
- Path.cs
- FigureParaClient.cs
- Math.cs
- ObjectViewEntityCollectionData.cs
- WebZone.cs
- XmlUtil.cs
- FullTextLine.cs
- FolderBrowserDialogDesigner.cs
- SuppressMergeCheckAttribute.cs
- TrustLevel.cs
- UpDownBase.cs
- BitmapEffectRenderDataResource.cs
- ExpressionBuilderContext.cs
- PrivilegeNotHeldException.cs
- WebPartVerbCollection.cs
- BitmapEffectDrawing.cs
- WebServiceHostFactory.cs
- RecognitionResult.cs
- CreateUserErrorEventArgs.cs
- DataServiceConfiguration.cs
- OnOperation.cs
- InstanceDataCollection.cs
- HttpProfileBase.cs
- NavigateUrlConverter.cs
- SortableBindingList.cs
- TraceHandler.cs
- CodeObjectCreateExpression.cs
- EventSetterHandlerConverter.cs
- TopClause.cs
- QilGenerator.cs
- Vector3D.cs
- Point.cs
- ListViewGroupConverter.cs