2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 05:23:13 +00:00
This commit is contained in:
2024-12-05 15:11:24 +03:00
parent 2bccebd419
commit ebc80b08cf
7 changed files with 98 additions and 20 deletions

View File

@ -16,10 +16,14 @@ public class MemberData
public MemberData? Parent;
public MemberData? Child;
public byte Index;
//public ExportAttribute ExportAttribute;
public MemberData(string name, MemberInfo info, int order)
//public string Name => ExportAttribute?.Name ?? Info.Name;
public MemberData(MemberInfo info, int order)
{
this.Name = name;
this.Name = info.GetCustomAttribute<ExportAttribute>()?.Name ?? info.Name;
this.Info = info;
this.Order = order;
}