mark structs readonly
This commit is contained in:
parent
c4a82418ac
commit
2e63fff9ab
|
@ -400,7 +400,7 @@ namespace StardewModdingAPI.Framework.ModLoading
|
|||
** Private models
|
||||
*********/
|
||||
/// <summary>Represents a dependency from one mod to another.</summary>
|
||||
private struct ModDependency
|
||||
private readonly struct ModDependency
|
||||
{
|
||||
/*********
|
||||
** Accessors
|
||||
|
|
|
@ -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; }
|
||||
|
||||
|
||||
/*********
|
||||
|
|
Loading…
Reference in New Issue