mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-07-03 23:53:12 +00:00
Interfaces
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user