2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-07-03 23:53:12 +00:00

Interfaces

This commit is contained in:
2024-11-11 17:26:15 +03:00
parent 44943b23b0
commit 0c335c6023
6 changed files with 24 additions and 1 deletions

View File

@ -765,6 +765,9 @@ public static class Warehouse
/// <returns>Resource template.</returns>
public static TypeTemplate GetTemplateByType(Type type)
{
if (!(type.IsClass || type.IsEnum))
return null;
var baseType = ResourceProxy.GetBaseType(type);
if (baseType == typeof(IResource)