|
using System;
namespace SpellChecker.Dictionary.Phonetic
{
/// <summary>
/// A strongly typed enumerator for 'PhoneticRuleCollection'
/// </summary>
public class PhoneticRuleEnumerator : object, System.Collections.IEnumerator
{
private System.Collections.IEnumerator Base;
private System.Collections.IEnumerable Local;
/// <summary>
/// Enumerator constructor
/// </summary>
public PhoneticRuleEnumerator(PhoneticRuleCollection mappings)
{
this.Local = ((System.Collections.IEnumerable)(mappings));
this.Base = Local.GetEnumerator();
}
/// <summary>
/// Gets the current element from the collection (strongly typed)
/// </summary>
public PhoneticRule Current
{
get
{
return ((PhoneticRule)(Base.Current));
}
}
/// <summary>
/// Gets the current element from the collection
/// </summary>
object System.Collections.IEnumerator.Current
{
get
{
return Base.Current;
}
}
/// <summary>
/// Advances the enumerator to the next element of the collection
/// </summary>
public bool MoveNext()
{
return Base.MoveNext();
}
/// <summary>
/// Advances the enumerator to the next element of the collection
/// </summary>
bool System.Collections.IEnumerator.MoveNext()
{
return Base.MoveNext();
}
/// <summary>
/// Sets the enumerator to the first element in the collection
/// </summary>
public void Reset()
{
Base.Reset();
}
/// <summary>
/// Sets the enumerator to the first element in the collection
/// </summary>
void System.Collections.IEnumerator.Reset()
{
Base.Reset();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.