2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 13:33:13 +00:00
This commit is contained in:
2022-09-19 00:00:32 +03:00
parent c1b9af9e9e
commit 8e17a5b677
5 changed files with 29 additions and 22 deletions

View File

@ -28,6 +28,9 @@ public static class ResourceProxy
public static Type GetBaseType(Type type)
{
if (type == null)
throw new NullReferenceException("Type can't be null.");
if (type.Assembly.IsDynamic)
return type.GetTypeInfo().BaseType;
else