A game framework written with osu! in mind.
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2// See the LICENCE file in the repository root for full licence text.
3
4using System.Reflection;
5using Microsoft.CodeAnalysis;
6
7namespace osu.Framework.Testing
8{
9 internal readonly struct AssemblyReference
10 {
11 public readonly Assembly Assembly;
12 public readonly bool IgnoreAccessChecks;
13
14 public AssemblyReference(Assembly assembly, bool ignoreAccessChecks)
15 {
16 Assembly = assembly;
17 IgnoreAccessChecks = ignoreAccessChecks;
18 }
19
20 public MetadataReference GetReference() => MetadataReference.CreateFromFile(Assembly.Location);
21 }
22}