mirror of
https://github.com/dcronqvist/DotTiled.git
synced 2025-05-08 23:56:04 +03:00
Make Optional<T> into readonly struct to avoid heap allocations
This commit is contained in:
parent
de41fb5508
commit
92702a512d
35 changed files with 177 additions and 205 deletions
|
@ -39,7 +39,7 @@ public partial class MapReaderTests
|
|||
return new Optional<ICustomTypeDefinition>(ctd);
|
||||
}
|
||||
|
||||
return Optional<ICustomTypeDefinition>.Empty;
|
||||
return Optional.Empty;
|
||||
}
|
||||
using var mapReader = new MapReader(mapString, ResolveTileset, ResolveTemplate, ResolveCustomType);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue