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
- UserNameSecurityTokenProvider.cs
- HwndSource.cs
- MemoryStream.cs
- XmlTextWriter.cs
- DataColumn.cs
- DataGridViewTopRowAccessibleObject.cs
- ToolStripDropDownButton.cs
- GeometryGroup.cs
- FilterQuery.cs
- ExceptionUtil.cs
- Stack.cs
- LayoutManager.cs
- XmlQueryContext.cs
- DeleteMemberBinder.cs
- MarkedHighlightComponent.cs
- SQLInt32Storage.cs
- pingexception.cs
- SetIterators.cs
- altserialization.cs
- AppSecurityManager.cs
- DrawingContext.cs
- FileDialog.cs
- ColorTransformHelper.cs
- ServiceHostingEnvironment.cs
- VirtualPath.cs
- MexTcpBindingCollectionElement.cs
- ComponentResourceManager.cs
- FixedSOMLineCollection.cs
- X509Certificate2.cs
- MediaContext.cs
- CodeIndexerExpression.cs
- JoinSymbol.cs
- CodeVariableDeclarationStatement.cs
- TextFormatter.cs
- DefaultSettingsSection.cs
- ModuleElement.cs
- OdbcEnvironmentHandle.cs
- RectangleConverter.cs
- FactorySettingsElement.cs
- QilChoice.cs
- ToolStripContainer.cs
- XmlILStorageConverter.cs
- MenuBindingsEditor.cs
- ConfigXmlReader.cs
- CodeNamespaceCollection.cs
- WindowsToolbarAsMenu.cs
- CodeDOMUtility.cs
- _UriTypeConverter.cs
- DSACryptoServiceProvider.cs
- GridViewHeaderRowPresenter.cs
- ToolStripDropDownItemDesigner.cs
- ReadContentAsBinaryHelper.cs
- Util.cs
- COSERVERINFO.cs
- SelectionRange.cs
- GradientSpreadMethodValidation.cs
- GeometryConverter.cs
- ClientCultureInfo.cs
- XmlnsDefinitionAttribute.cs
- StrongNameKeyPair.cs
- TimeZone.cs
- _AutoWebProxyScriptEngine.cs
- MimeWriter.cs
- RadioButtonPopupAdapter.cs
- RawStylusInput.cs
- EntityContainerAssociationSet.cs
- entityreference_tresulttype.cs
- TreeView.cs
- Odbc32.cs
- NamedPermissionSet.cs
- NumberFunctions.cs
- ParameterElement.cs
- FileClassifier.cs
- InternalsVisibleToAttribute.cs
- ArgIterator.cs
- WindowExtensionMethods.cs
- EntityReference.cs
- CommandPlan.cs
- Vector.cs
- KeyFrames.cs
- DataServiceCollectionOfT.cs
- ValidatingReaderNodeData.cs
- CopyNodeSetAction.cs
- BamlVersionHeader.cs
- log.cs
- DataGridTable.cs
- ObjectTokenCategory.cs
- XmlRootAttribute.cs
- ActivityCodeDomSerializationManager.cs
- DataListCommandEventArgs.cs
- BasicAsyncResult.cs
- SecurityException.cs
- XmlReflectionImporter.cs
- UpdateExpressionVisitor.cs
- DynamicActivityXamlReader.cs
- EntityDescriptor.cs
- ReflectionHelper.cs
- BlurBitmapEffect.cs
- EmbossBitmapEffect.cs
- GenericWebPart.cs