summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Reflection/CacheEntry.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Framework/Reflection/CacheEntry.cs')
-rw-r--r--src/SMAPI/Framework/Reflection/CacheEntry.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SMAPI/Framework/Reflection/CacheEntry.cs b/src/SMAPI/Framework/Reflection/CacheEntry.cs
index 30faca37..912662e3 100644
--- a/src/SMAPI/Framework/Reflection/CacheEntry.cs
+++ b/src/SMAPI/Framework/Reflection/CacheEntry.cs
@@ -3,16 +3,16 @@ using System.Reflection;
namespace StardewModdingAPI.Framework.Reflection
{
/// <summary>A cached member reflection result.</summary>
- internal struct CacheEntry
+ internal readonly struct CacheEntry
{
/*********
** Accessors
*********/
/// <summary>Whether the lookup found a valid match.</summary>
- public bool IsValid;
+ public bool IsValid { get; }
/// <summary>The reflection data for this member (or <c>null</c> if invalid).</summary>
- public MemberInfo MemberInfo;
+ public MemberInfo MemberInfo { get; }
/*********