﻿namespace GeneratorAPI {
    /// <summary>
    ///     Represents a generic generator which can generate any ammount of elements.
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IGenerator<out T> : IGenerator {
        /// <summary>
        ///     Generate next element.
        /// </summary>
        T Generate();
    }

    public interface IGenerator {
        object Generate();
    }
}
﻿namespace GeneratorAPI {
    /// <summary>
    ///     Represents a generic generator which can generate any ammount of elements.
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IGenerator<out T> : IGenerator {
        /// <summary>
        ///     Generate next element.
        /// </summary>
        new T Generate();
    }

    public interface IGenerator {
        object Generate();
    }
}
Add new keyword for hiding the none generic generate
Add new keyword for hiding the none generic generate


Former-commit-id: 5280876761e8347c145624427d7ba1840d6aa013