﻿namespace Sharpy.Core {
    /// <summary>
    ///     <para>Represent a generator which can generate any amount of elements by invoking method <see cref="Generate" />.</para>
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IGenerator<out T>  {
        /// <summary>
        ///     <para>Generate next element.</para>
        /// </summary>
        /// <returns>
        ///     A generated element.
        /// </returns>
        new T Generate();
    }

}
﻿namespace Sharpy.Core {
    /// <summary>
    ///     <para>Represent a generator which can generate any amount of elements by invoking method <see cref="Generate" />.</para>
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IGenerator<out T> {
        /// <summary>
        ///     <para>Generate next element.</para>
        /// </summary>
        /// <returns>
        ///     A generated element.
        /// </returns>
        T Generate();
    }
}
Remove new keyword from interface
Remove new keyword from interface


Former-commit-id: e271328ab161d18c97babd8a011a6806ce7b1981