using System.Reflection;
namespace StardewModdingAPI.Framework.Reflection
{
/// A cached member reflection result.
internal struct CacheEntry
{
/*********
** Accessors
*********/
/// Whether the lookup found a valid match.
public bool IsValid;
/// The reflection data for this member (or null if invalid).
public MemberInfo MemberInfo;
/*********
** Public methods
*********/
/// Construct an instance.
/// Whether the lookup found a valid match.
/// The reflection data for this member (or null if invalid).
public CacheEntry(bool isValid, MemberInfo memberInfo)
{
this.IsValid = isValid;
this.MemberInfo = memberInfo;
}
}
}