summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Reflection
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-27 13:41:19 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-27 13:41:19 -0500
commit2e63fff9ab2d7b9720f2ab5d2e338fb701a70661 (patch)
tree44fc8ff1498cd3d77597246ddbaebebbb7573a8c /src/SMAPI/Framework/Reflection
parentc4a82418ac8b09a6965052f5c9173928457fba52 (diff)
downloadSMAPI-2e63fff9ab2d7b9720f2ab5d2e338fb701a70661.tar.gz
SMAPI-2e63fff9ab2d7b9720f2ab5d2e338fb701a70661.tar.bz2
SMAPI-2e63fff9ab2d7b9720f2ab5d2e338fb701a70661.zip
mark structs readonly
Diffstat (limited to 'src/SMAPI/Framework/Reflection')
-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; }
/*********