#nullable disable using System.Reflection; namespace StardewModdingAPI.Framework.Reflection { /// A cached member reflection result. internal readonly struct CacheEntry { /********* ** Accessors *********/ /// Whether the lookup found a valid match. public bool IsValid { get; } /// The reflection data for this member (or null if invalid). public MemberInfo MemberInfo { get; } /********* ** 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; } } }