compatibility

This commit is contained in:
monitor1394
2022-01-07 09:48:59 +08:00
parent 228a4b2840
commit 0282dae582
9 changed files with 50 additions and 16 deletions

View File

@@ -611,10 +611,11 @@ namespace XCharts
list.AddRange(fileds2);
foreach (var field in list)
{
var attribute1 = field.GetCustomAttribute<ListForSerie>();
var attribute1 = field.GetAttribute<ListForSerie>(false);
if (attribute1 != null)
m_TypeListForSerie.Add(attribute1.type, field);
var attribute2 = field.GetCustomAttribute<ListForComponent>();
var attribute2 = field.GetAttribute<ListForComponent>(false);
if (attribute2 != null)
m_TypeListForComponent.Add(attribute2.type, field);
}