Skip to content

Commit

Permalink
backwwards compatabiliy w/ netcoreapp3.1 added
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-dot-cohen committed Aug 8, 2023
1 parent 45e1c0d commit c2d7a49
Show file tree
Hide file tree
Showing 15 changed files with 2,257 additions and 2,186 deletions.
1,512 changes: 756 additions & 756 deletions HyperSerializer.Benchmarks/Experiments/Buffers/SpanByteBuffer.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,8 @@ private static void Emit(CSharpCompilation _compilation)
}

ms.Seek(0, SeekOrigin.Begin);
#if NET5_0_OR_GREATER

var generatedAssembly = AssemblyLoadContext.Default.LoadFromStream(ms);
#else
var generatedAssembly = Assembly.Load(ms.ToArray());

#endif
_proxyType = generatedAssembly.GetType(_proxyTypeName);
}
}
Expand Down
Loading

0 comments on commit c2d7a49

Please sign in to comment.