using System.Collections;
namespace Numbers.NumberString;
///
/// Represents a string consisting of digits and letters intermixed
///
///
///
public sealed class NumberString : IEnumerable, IComparable
{
// TODO
// private readonly string _text;
// private int? _numericValue;
///
/// Creates a new instance of based on the given text.
/// As a simplification, the text is assumed to be a valid number string.
///
/// A string containing digits and letters
public NumberString(string text)
{
// TODO
}
///
/// Gets the numeric value contained in the number string
///
public int NumericValue => -1; // TODO
///
/// Gets the digit at the given index.
/// If the index is out of range, -1 is returned.
///
/// Digit index
public int this[int index]
{
get
{
// TODO
return -1;
}
}
public int CompareTo(NumberString? other) => -1; // TODO
public IEnumerator GetEnumerator() => null!; // TODO
IEnumerator IEnumerable.GetEnumerator() => null!; // TODO
public override bool Equals(object? obj)
{
// TODO
return false;
}
public override int GetHashCode() => -1; // TODO
public static bool operator >(NumberString a, NumberString b) => false; // TODO
public static bool operator <(NumberString a, NumberString b) => false; // TODO
public static bool operator ==(NumberString a, NumberString b) => false; // TODO
public static bool operator !=(NumberString a, NumberString b) => false; // TODO
}