using System.Reflection; namespace StardewModdingAPI { /// A method obtained through reflection. public interface IReflectedMethod { /********* ** Accessors *********/ /// The reflection metadata. MethodInfo MethodInfo { get; } /********* ** Public methods *********/ /// Invoke the method. /// The return type. /// The method arguments to pass in. TValue Invoke(params object?[] arguments); /// Invoke the method. /// The method arguments to pass in. void Invoke(params object?[] arguments); } }