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.cs30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/SMAPI/Framework/Reflection/CacheEntry.cs b/src/SMAPI/Framework/Reflection/CacheEntry.cs
deleted file mode 100644
index 27f48a1f..00000000
--- a/src/SMAPI/Framework/Reflection/CacheEntry.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using System.Reflection;
-
-namespace StardewModdingAPI.Framework.Reflection
-{
- /// <summary>A cached member reflection result.</summary>
- internal readonly struct CacheEntry
- {
- /*********
- ** Accessors
- *********/
- /// <summary>Whether the lookup found a valid match.</summary>
- [MemberNotNullWhen(true, nameof(CacheEntry.MemberInfo))]
- public bool IsValid => this.MemberInfo != null;
-
- /// <summary>The reflection data for this member (or <c>null</c> if invalid).</summary>
- public MemberInfo? MemberInfo { get; }
-
-
- /*********
- ** Public methods
- *********/
- /// <summary>Construct an instance.</summary>
- /// <param name="memberInfo">The reflection data for this member (or <c>null</c> if invalid).</param>
- public CacheEntry(MemberInfo? memberInfo)
- {
- this.MemberInfo = memberInfo;
- }
- }
-}