using System.Collections; namespace Numbers.NumberString; /// /// Allows to enumerate only the digits in a string /// /// public sealed class DigitEnumerator : IEnumerator { // TODO // private readonly string _text; // private int _index; /// /// Creates a new instance of based on the given text. /// This will be called within . /// /// The text to iterate over (containing both letters and digits) public DigitEnumerator(string text) { // TODO } public bool MoveNext() { // TODO return false; } public void Reset() { // TODO } public int Current { get { // TODO return -1; //static int GetDigit(char c) => c - '0'; } } object IEnumerator.Current => null!; // TODO public void Dispose() { // TODO? } }