summaryrefslogtreecommitdiff
path: root/src/SMAPI/IReflectedProperty.cs
blob: 73ad9f30b21a8eed5d681d6815a41c4f0bf25d5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System.Reflection;

namespace StardewModdingAPI
{
    /// <summary>A property obtained through reflection.</summary>
    /// <typeparam name="TValue">The property value type.</typeparam>
    public interface IReflectedProperty<TValue>
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The reflection metadata.</summary>
        PropertyInfo PropertyInfo { get; }


        /*********
        ** Public methods
        *********/
        /// <summary>Get the property value.</summary>
        TValue GetValue();

        /// <summary>Set the property value.</summary>
        //// <param name="value">The value to set.</param>
        void SetValue(TValue value);
    }
}