Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PropertyPushdownHelper.cs
- RouteParameter.cs
- XmlSignificantWhitespace.cs
- WebPartConnectionsCancelVerb.cs
- ReflectTypeDescriptionProvider.cs
- SafeHandles.cs
- RecordManager.cs
- WindowInteractionStateTracker.cs
- Token.cs
- SizeConverter.cs
- RMEnrollmentPage1.cs
- ScaleTransform.cs
- FamilyMap.cs
- NameGenerator.cs
- WindowsRichEdit.cs
- UIElement3D.cs
- EventProviderClassic.cs
- XmlSchemaSimpleTypeList.cs
- FileDialogCustomPlace.cs
- LoginCancelEventArgs.cs
- IndentTextWriter.cs
- SvcMapFileSerializer.cs
- CodeDomConfigurationHandler.cs
- RelationshipFixer.cs
- TextSpanModifier.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- DecoderFallbackWithFailureFlag.cs
- TreeViewEvent.cs
- NativeRightsManagementAPIsStructures.cs
- ValueProviderWrapper.cs
- ParameterToken.cs
- _ProxyChain.cs
- KnownTypesHelper.cs
- EventProvider.cs
- CLSCompliantAttribute.cs
- GenericRootAutomationPeer.cs
- AppDomainAttributes.cs
- ExpressionConverter.cs
- SqlUserDefinedAggregateAttribute.cs
- RuleAttributes.cs
- safelinkcollection.cs
- CapabilitiesSection.cs
- TimerElapsedEvenArgs.cs
- TraceHandler.cs
- ArrayTypeMismatchException.cs
- MenuBase.cs
- RelationshipType.cs
- WindowInteropHelper.cs
- DataRowChangeEvent.cs
- InputBuffer.cs
- XsltInput.cs
- DefaultPrintController.cs
- CodeCompileUnit.cs
- Filter.cs
- AuthorizationRule.cs
- OwnerDrawPropertyBag.cs
- Rotation3DAnimation.cs
- BamlBinaryWriter.cs
- ProjectionCamera.cs
- LowerCaseStringConverter.cs
- EdmToObjectNamespaceMap.cs
- ActivityDesignerAccessibleObject.cs
- TextRunTypographyProperties.cs
- CallbackValidatorAttribute.cs
- TdsParserSafeHandles.cs
- DirectionalLight.cs
- LabelDesigner.cs
- NamedPermissionSet.cs
- PropertyAccessVisitor.cs
- EntityParameterCollection.cs
- BrushConverter.cs
- AuthenticatingEventArgs.cs
- DashStyle.cs
- NamespaceMapping.cs
- ColumnBinding.cs
- MessageSmuggler.cs
- PassportAuthenticationEventArgs.cs
- ParameterReplacerVisitor.cs
- TraceLevelHelper.cs
- TimeManager.cs
- EncodingDataItem.cs
- DataGridItemCollection.cs
- InfiniteTimeSpanConverter.cs
- clipboard.cs
- CorePropertiesFilter.cs
- CssStyleCollection.cs
- DateTimeStorage.cs
- SymDocumentType.cs
- CodeFieldReferenceExpression.cs
- ValueExpressions.cs
- MdImport.cs
- TextBoxBase.cs
- Win32PrintDialog.cs
- HtmlElement.cs
- GenerateTemporaryTargetAssembly.cs
- regiisutil.cs
- Int32Converter.cs
- SecurityManager.cs
- SimpleNameService.cs
- DataGridViewAccessibleObject.cs