summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Reflection/IPrivateField.cs
blob: f758902f5e7d5b36ef64bd1261c798c4087a470e (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.Reflection
{
    /// <summary>A private field obtained through reflection.</summary>
    /// <typeparam name="TValue">The field value type.</typeparam>
    public interface IPrivateField<TValue>
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The reflection metadata.</summary>
        FieldInfo FieldInfo { get; }


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

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