Browse Source

Seed unsafe calls from the static constructor.

pull/785/head
Shane Woolcock 7 years ago
parent
commit
83d52d5f79
  1. 5
      src/ImageSharp/Advanced/AotCompilerTools.cs

5
src/ImageSharp/Advanced/AotCompilerTools.cs

@ -18,10 +18,7 @@ namespace SixLabors.ImageSharp.Advanced
/// </summary>
public static class AotCompilerTools
{
/// <summary>
/// Seeds the <see cref="System.Runtime.CompilerServices.Unsafe"/> calls.
/// </summary>
public static void SeedUnsafe()
static AotCompilerTools()
{
System.Runtime.CompilerServices.Unsafe.SizeOf<long>();
System.Runtime.CompilerServices.Unsafe.SizeOf<short>();

Loading…
Cancel
Save