add: Scene
This commit is contained in:
18
src/Utils.cs
Normal file
18
src/Utils.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Reflection;
|
||||
|
||||
namespace Hangman.SDK;
|
||||
|
||||
public static class Utils
|
||||
{
|
||||
public static IEnumerable<Type> GetLoadableTypes(Assembly assembly)
|
||||
{
|
||||
try
|
||||
{
|
||||
return assembly.GetTypes();
|
||||
}
|
||||
catch (ReflectionTypeLoadException e)
|
||||
{
|
||||
return e.Types.Where(t => t != null);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user