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
- DataViewSettingCollection.cs
- TimerExtension.cs
- TreeNodeStyleCollectionEditor.cs
- _SslStream.cs
- RemoteWebConfigurationHost.cs
- HttpProtocolReflector.cs
- TransformerTypeCollection.cs
- EmbeddedMailObjectsCollection.cs
- TextTreeText.cs
- shaper.cs
- HuffmanTree.cs
- SmtpSection.cs
- NGCUIElementCollectionSerializerAsync.cs
- ServiceModelConfigurationElementCollection.cs
- DropShadowBitmapEffect.cs
- PeerNearMe.cs
- AuthenticatedStream.cs
- VisualStyleInformation.cs
- HotSpot.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- DLinqDataModelProvider.cs
- RegexRunner.cs
- DataTemplateKey.cs
- ForEachAction.cs
- KeyedCollection.cs
- UnsafeNativeMethods.cs
- SamlConstants.cs
- SqlNode.cs
- _ProxyChain.cs
- SubclassTypeValidatorAttribute.cs
- ConstructorNeedsTagAttribute.cs
- TableLayoutStyle.cs
- GenerateTemporaryAssemblyTask.cs
- TypeToken.cs
- HwndKeyboardInputProvider.cs
- MaskedTextBoxTextEditorDropDown.cs
- HtmlFormParameterReader.cs
- SocketStream.cs
- PingReply.cs
- DictionaryBase.cs
- SingleAnimationUsingKeyFrames.cs
- RequestCacheEntry.cs
- ImplicitInputBrush.cs
- CounterSample.cs
- MarkupCompiler.cs
- DataFormat.cs
- TemplateBuilder.cs
- MembershipUser.cs
- WmpBitmapEncoder.cs
- ContainerAction.cs
- WorkflowRuntimeServiceElement.cs
- DesignTimeTemplateParser.cs
- MaskedTextBox.cs
- Rfc2898DeriveBytes.cs
- DescendantQuery.cs
- WebPartAuthorizationEventArgs.cs
- ClientSettingsStore.cs
- NumericUpDownAccelerationCollection.cs
- RuntimeResourceSet.cs
- CounterSetInstance.cs
- _BasicClient.cs
- PreviewPrintController.cs
- WindowsImpersonationContext.cs
- FigureParagraph.cs
- ListItemConverter.cs
- xamlnodes.cs
- ComponentEvent.cs
- XmlSchemaSimpleType.cs
- PropertyGroupDescription.cs
- IsolatedStorageException.cs
- CompilerLocalReference.cs
- ControlValuePropertyAttribute.cs
- ApplicationContext.cs
- DataSourceHelper.cs
- BindingCompleteEventArgs.cs
- Query.cs
- CodeEntryPointMethod.cs
- DesignerVerbCollection.cs
- WindowsAltTab.cs
- EmbeddedMailObject.cs
- VariableDesigner.xaml.cs
- PriorityQueue.cs
- Models.cs
- QilTypeChecker.cs
- DoubleCollectionValueSerializer.cs
- OdbcConnection.cs
- WebChannelFactory.cs
- WebPartConnectionCollection.cs
- ActivationWorker.cs
- ObfuscationAttribute.cs
- CodeDOMProvider.cs
- ExtensionQuery.cs
- GroupBox.cs
- CodeGen.cs
- GenericsInstances.cs
- DrawingContext.cs
- KeyBinding.cs
- ContextMarshalException.cs
- DataListCommandEventArgs.cs
- LowerCaseStringConverter.cs