2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 13:33:13 +00:00

GetHierarchy

This commit is contained in:
2022-08-20 01:57:18 +03:00
parent ebcf8525fa
commit acc2a546cf
9 changed files with 280 additions and 153 deletions

View File

@ -21,4 +21,11 @@ public class AttributeTemplate : MemberTemplate
{
}
public static AttributeTemplate MakeAttributeTemplate(Type type, PropertyInfo pi, byte index = 0, string customName = null, TypeTemplate typeTemplate = null)
{
var at = new AttributeTemplate(typeTemplate, index, customName, pi.DeclaringType != type);
at.PropertyInfo = pi;
return at;
}
}