Class LanguageNodeEnumerator

Enumerator to recursively iterate thru a LanguageNode.

Inheritance
System.Object
LanguageNodeEnumerator
Implements
System.Collections.Generic.IEnumerable<System.Collections.DictionaryEntry>
System.Collections.IEnumerable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
[Obsolete("Use EPiServer.Framework.Localization.LocalizationService instead", false)]
public class LanguageNodeEnumerator : IEnumerable<DictionaryEntry>, IEnumerable

Constructors

LanguageNodeEnumerator(LanguageNode)

Creates an enumerator for the given node.

Declaration
public LanguageNodeEnumerator(LanguageNode root)
Parameters
Type Name Description
LanguageNode root

The node to enumerate.

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
public IEnumerator<DictionaryEntry> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<System.Collections.DictionaryEntry>

A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection.

ScanRecursive(LanguageNode)

The actual enumeration

Declaration
public IEnumerable<DictionaryEntry> ScanRecursive(LanguageNode node)
Parameters
Type Name Description
LanguageNode node

The current node in the recursion

Returns
Type Description
System.Collections.Generic.IEnumerable<System.Collections.DictionaryEntry>

An IEnumerable

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable

Extension Methods