From 2e63fff9ab2d7b9720f2ab5d2e338fb701a70661 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Thu, 27 Dec 2018 13:41:19 -0500 Subject: mark structs readonly --- src/SMAPI/Framework/Reflection/CacheEntry.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/SMAPI/Framework/Reflection') 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 { /// A cached member reflection result. - internal struct CacheEntry + internal readonly struct CacheEntry { /********* ** Accessors *********/ /// Whether the lookup found a valid match. - public bool IsValid; + public bool IsValid { get; } /// The reflection data for this member (or null if invalid). - public MemberInfo MemberInfo; + public MemberInfo MemberInfo { get; } /********* -- cgit