using System.Reflection; namespace StardewModdingAPI { /// A private method obtained through reflection. public interface IPrivateMethod { /********* ** 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); } }