diff --git a/src/BizHawk.Common/DeepEquality.cs b/src/BizHawk.Common/DeepEquality.cs
index 3d86bcc277..ec5919f3dc 100644
--- a/src/BizHawk.Common/DeepEquality.cs
+++ b/src/BizHawk.Common/DeepEquality.cs
@@ -16,7 +16,7 @@ namespace BizHawk.Common
///
/// return true if an array type is not 0-based
///
- private static bool IsNonZeroBaedArray(Type t)
+ private static bool IsNonZeroBasedArray(Type t)
{
if (!t.IsArray)
{
@@ -69,7 +69,7 @@ namespace BizHawk.Common
}
private static readonly MethodInfo ArrayEqualsGeneric
- = typeof(DeepEquality).GetMethod("ArrayEquals", BindingFlags.NonPublic | BindingFlags.Static)
+ = typeof(DeepEquality).GetMethod(nameof(ArrayEquals), BindingFlags.NonPublic | BindingFlags.Static)
?? throw new NullReferenceException();
/// test if two objects and are equal, field-by-field (with deep inspection of each field)
@@ -92,7 +92,7 @@ namespace BizHawk.Common
if (t1.IsArray)
{
// it's not too hard to support thesse if needed
- if (t1.GetArrayRank() > 1 || IsNonZeroBaedArray(t1))
+ if (t1.GetArrayRank() > 1 || IsNonZeroBasedArray(t1))
{
throw new InvalidOperationException("Complex arrays not supported");
}