You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb leigh.swift #rnx #preflight 62337c800820efd0945e40d0 [CL 19424430 by Tim Smith in ue5-main branch]
26 lines
451 B
C#
26 lines
451 B
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using System;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
|
|
namespace UnrealBuildBase
|
|
{
|
|
public static class AssemblyExtensions
|
|
{
|
|
public static Type[] SafeGetLoadedTypes(this Assembly Dll)
|
|
{
|
|
Type[] AllTypes;
|
|
try
|
|
{
|
|
AllTypes = Dll.GetTypes();
|
|
}
|
|
catch (ReflectionTypeLoadException e)
|
|
{
|
|
AllTypes = e.Types.Where(x => x != null).ToArray();
|
|
}
|
|
return AllTypes;
|
|
}
|
|
}
|
|
}
|