Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / Xml / System / Xml / Dom / XmlChildEnumerator.cs / 1 / XmlChildEnumerator.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml { using System.Collections; internal sealed class XmlChildEnumerator: IEnumerator { internal XmlNode container; internal XmlNode child; internal bool isFirst; internal XmlChildEnumerator( XmlNode container ) { this.container = container; this.child = container.FirstChild; this.isFirst = true; } bool IEnumerator.MoveNext() { return this.MoveNext(); } internal bool MoveNext() { if (isFirst) { child = container.FirstChild; isFirst = false; } else if (child != null) { child = child.NextSibling; } return child != null; } void IEnumerator.Reset() { isFirst = true; child = container.FirstChild; } object IEnumerator.Current { get { return this.Current; } } internal XmlNode Current { get { if (isFirst || child == null) throw new InvalidOperationException(Res.GetString(Res.Xml_InvalidOperation)); return child; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResourceDescriptionAttribute.cs
- WindowsSlider.cs
- WebPartMinimizeVerb.cs
- DataControlFieldHeaderCell.cs
- NotifyIcon.cs
- ContentElementAutomationPeer.cs
- HostExecutionContextManager.cs
- PropertyFilter.cs
- Control.cs
- XPathExpr.cs
- DeobfuscatingStream.cs
- XmlDocumentType.cs
- Contracts.cs
- TextEditorTyping.cs
- Window.cs
- IPAddress.cs
- SimpleHandlerFactory.cs
- RoutedEventValueSerializer.cs
- SafeNativeMethods.cs
- XXXInfos.cs
- TimeManager.cs
- ImageAutomationPeer.cs
- DefaultPrintController.cs
- WindowsNonControl.cs
- ClientSideQueueItem.cs
- MatrixTransform.cs
- CustomValidator.cs
- AttachedPropertyBrowsableAttribute.cs
- HiddenField.cs
- X509Extension.cs
- BitConverter.cs
- ZipIOExtraFieldPaddingElement.cs
- InputMethodStateTypeInfo.cs
- XamlToRtfWriter.cs
- BamlTreeMap.cs
- EntityContainerEmitter.cs
- DbParameterCollectionHelper.cs
- FactoryId.cs
- Win32MouseDevice.cs
- FixedSOMPage.cs
- DefaultParameterValueAttribute.cs
- CultureMapper.cs
- XmlSerializerAssemblyAttribute.cs
- ApplicationServiceManager.cs
- AmbientEnvironment.cs
- ChangeProcessor.cs
- FrameworkElementFactory.cs
- ControlPersister.cs
- OutputCacheModule.cs
- AxWrapperGen.cs
- DesignerLinkAdapter.cs
- MatrixTransform3D.cs
- DataStreams.cs
- XmlEntityReference.cs
- wgx_exports.cs
- DataContract.cs
- ProfileInfo.cs
- TypedColumnHandler.cs
- UIElement3DAutomationPeer.cs
- SignerInfo.cs
- XmlSchemaAnyAttribute.cs
- StateMachineSubscription.cs
- RandomDelayQueuedSendsAsyncResult.cs
- BitVector32.cs
- DataStreamFromComStream.cs
- BinHexDecoder.cs
- Command.cs
- WindowsFormsHelpers.cs
- EditorZoneBase.cs
- ElementHost.cs
- WebPartHelpVerb.cs
- MobileRedirect.cs
- CachedCompositeFamily.cs
- XmlWhitespace.cs
- JulianCalendar.cs
- CellTreeNodeVisitors.cs
- BaseDataListComponentEditor.cs
- WindowsListViewGroup.cs
- ViewKeyConstraint.cs
- PerformanceCounterPermission.cs
- Emitter.cs
- TreeViewItem.cs
- ServiceHandle.cs
- ModelFactory.cs
- QueryRewriter.cs
- TransactedBatchingBehavior.cs
- XPathDocumentNavigator.cs
- OrderedDictionaryStateHelper.cs
- CatalogPartCollection.cs
- FormsAuthenticationConfiguration.cs
- Codec.cs
- CqlGenerator.cs
- TrackingProfileSerializer.cs
- Cursor.cs
- BitmapSourceSafeMILHandle.cs
- ReadOnlyObservableCollection.cs
- SafeFileMappingHandle.cs
- ComboBoxAutomationPeer.cs
- StrongBox.cs
- BindingOperations.cs