fix: Fixes compiling with .NET 7 SDK (#1176)

This commit is contained in:
Kamron Batman 2022-09-28 21:17:30 -07:00 • committed by GitHub
parent 060edaa76a
commit cd5541ec74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 106 additions and 1 deletions

View file

@ -25,5 +25,9 @@ public abstract class GumpEntry
// TODO: Replace OrderedHashSet with InsertOnlyHashSet, a copy of HashSet that is ReadOnly compatible, but includes
// a public AddIfNotPresent function that returns the index of the element
#if NET7_SDK
public abstract void AppendTo(ref SpanWriter writer, OrderedHashSet<string> strings, scoped ref int entries, scoped ref int switches);
#else
public abstract void AppendTo(ref SpanWriter writer, OrderedHashSet<string> strings, ref int entries, ref int switches);
#endif
}