2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-01-27 09:30:39 +00:00
Files
esiur-dotnet/Esiur/Resource/Template/AttributeTemplate.cs
2026-01-26 19:36:06 +03:00

32 lines
672 B
C#

using Esiur.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace Esiur.Resource.Template;
public class AttributeTemplate : MemberTemplate
{
public PropertyInfo PropertyInfo
{
get;
set;
}
public static AttributeTemplate MakeAttributeTemplate(Type type, PropertyInfo pi, byte index, string name, TypeTemplate typeTemplate )
{
return new AttributeTemplate()
{
Index = index,
Inherited = pi.DeclaringType != type,
Name = name,
PropertyInfo = pi
};
}
}