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
- WCFModelStrings.Designer.cs
- ClassHandlersStore.cs
- Util.cs
- RelatedCurrencyManager.cs
- ImageField.cs
- IRCollection.cs
- UriPrefixTable.cs
- XMLSchema.cs
- ClockController.cs
- PointConverter.cs
- ValueType.cs
- TrackingLocation.cs
- CollectionEditorDialog.cs
- ProjectionAnalyzer.cs
- Accessors.cs
- ElementsClipboardData.cs
- ReflectionHelper.cs
- MenuDesigner.cs
- BaseWebProxyFinder.cs
- DecimalKeyFrameCollection.cs
- RsaSecurityTokenAuthenticator.cs
- FormViewInsertedEventArgs.cs
- XmlILConstructAnalyzer.cs
- TargetPerspective.cs
- JoinElimination.cs
- WindowsListBox.cs
- DashStyle.cs
- DelegateInArgument.cs
- CatalogPartCollection.cs
- ReverseInheritProperty.cs
- BrowserCapabilitiesCodeGenerator.cs
- shaperfactoryquerycachekey.cs
- ThicknessConverter.cs
- TextEditorCharacters.cs
- SqlEnums.cs
- PreparingEnlistment.cs
- WorkerRequest.cs
- TableRowGroup.cs
- Random.cs
- MemoryPressure.cs
- RegexCharClass.cs
- FreezableOperations.cs
- TypeGeneratedEventArgs.cs
- XPathException.cs
- NumericUpDown.cs
- InvokeHandlers.cs
- BoolExpr.cs
- CounterSample.cs
- URLIdentityPermission.cs
- IdentityNotMappedException.cs
- CodeSubDirectoriesCollection.cs
- LayoutTableCell.cs
- BitmapImage.cs
- MD5CryptoServiceProvider.cs
- DefaultBinder.cs
- SrgsText.cs
- HttpResponseHeader.cs
- ResourceDescriptionAttribute.cs
- SID.cs
- FormsAuthenticationEventArgs.cs
- GenericTextProperties.cs
- Variable.cs
- SQLStringStorage.cs
- ListControlBuilder.cs
- NativeMethods.cs
- TreeNodeConverter.cs
- FlatButtonAppearance.cs
- RelationshipConverter.cs
- DecoderNLS.cs
- XPathPatternParser.cs
- _SpnDictionary.cs
- DataGridViewSortCompareEventArgs.cs
- ToolstripProfessionalRenderer.cs
- SafeHandles.cs
- LocalizeDesigner.cs
- MediaContext.cs
- ControlPaint.cs
- SqlDataSourceCustomCommandEditor.cs
- Renderer.cs
- CompilationLock.cs
- GeometryDrawing.cs
- Stack.cs
- DataRowComparer.cs
- XmlAtomicValue.cs
- PathSegment.cs
- InProcStateClientManager.cs
- ValidatorCollection.cs
- WindowsListViewItem.cs
- TraceContextRecord.cs
- SchemaTableColumn.cs
- CultureInfo.cs
- PixelShader.cs
- ManagementInstaller.cs
- WebPartEditorOkVerb.cs
- XpsFilter.cs
- DataGridViewBand.cs
- MergePropertyDescriptor.cs
- StateRuntime.cs
- HitTestWithGeometryDrawingContextWalker.cs
- FieldCollectionEditor.cs