Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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
- PseudoWebRequest.cs
- ViewGenerator.cs
- ViewLoader.cs
- ScriptManagerProxy.cs
- DataObject.cs
- ListViewDeletedEventArgs.cs
- FirstMatchCodeGroup.cs
- ThreadAttributes.cs
- RemotingException.cs
- _OverlappedAsyncResult.cs
- AutomationPropertyInfo.cs
- AutomationIdentifier.cs
- Crypto.cs
- OverflowException.cs
- WindowsGraphics2.cs
- JavaScriptObjectDeserializer.cs
- EUCJPEncoding.cs
- PointCollectionConverter.cs
- DoubleAnimationClockResource.cs
- CommandEventArgs.cs
- PropertyValueUIItem.cs
- CheckBoxDesigner.cs
- DecoderNLS.cs
- SecurityException.cs
- CodeDefaultValueExpression.cs
- ToolStripItemTextRenderEventArgs.cs
- OracleDataAdapter.cs
- TraceListener.cs
- SchemaImporter.cs
- EdmFunctionAttribute.cs
- SafeLibraryHandle.cs
- ProcessInputEventArgs.cs
- HighlightVisual.cs
- SocketStream.cs
- ClientConfigurationHost.cs
- FacetValues.cs
- TransportContext.cs
- XmlSchemaValidator.cs
- DbSourceCommand.cs
- QuaternionAnimationBase.cs
- QueryContinueDragEventArgs.cs
- BinaryEditor.cs
- FrugalMap.cs
- WinFormsComponentEditor.cs
- ExtenderProviderService.cs
- Expr.cs
- SafeMILHandle.cs
- GradientBrush.cs
- ProviderUtil.cs
- ResourceContainer.cs
- CompilerGlobalScopeAttribute.cs
- DataColumnChangeEvent.cs
- ParenthesizePropertyNameAttribute.cs
- EventLog.cs
- WebReferenceOptions.cs
- Delegate.cs
- MergeExecutor.cs
- Dictionary.cs
- SupportsEventValidationAttribute.cs
- Container.cs
- ExpressionBuilder.cs
- FileChangesMonitor.cs
- Journaling.cs
- _ContextAwareResult.cs
- TranslateTransform.cs
- bindurihelper.cs
- SoapReflectionImporter.cs
- SemanticTag.cs
- ExpressionEditorAttribute.cs
- CustomWebEventKey.cs
- DbConnectionFactory.cs
- XhtmlTextWriter.cs
- CanonicalXml.cs
- VoiceObjectToken.cs
- Marshal.cs
- WbmpConverter.cs
- ForceCopyBuildProvider.cs
- DependsOnAttribute.cs
- Membership.cs
- XamlStyleSerializer.cs
- HtmlInputImage.cs
- Logging.cs
- HtmlSelect.cs
- StringBuilder.cs
- OracleCommandBuilder.cs
- NodeCounter.cs
- ExpressionBuilder.cs
- CodeTypeOfExpression.cs
- KnownColorTable.cs
- GatewayIPAddressInformationCollection.cs
- WebBrowser.cs
- CellPartitioner.cs
- ObjectSet.cs
- WebPartExportVerb.cs
- ContentFileHelper.cs
- ITextView.cs
- OleAutBinder.cs
- CompiledRegexRunnerFactory.cs
- GcHandle.cs
- SecurityDocument.cs