cool
This commit is contained in:
@@ -71,10 +71,9 @@ namespace BITKit.UX
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
foreach (var fieldInfo in self.GetType()
|
||||
.GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly)
|
||||
foreach (var fieldInfo in BITSharp.GetAllBaseType(self.GetType()).SelectMany(x=>x.GetFields(ReflectionHelper.Flags))
|
||||
.Where(x => x.GetCustomAttribute<UXBindPathAttribute>() is not null)
|
||||
)
|
||||
{
|
||||
@@ -100,9 +99,10 @@ namespace BITKit.UX
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
BIT4Log.Warning<UXUtils>(fieldInfo!.Name);
|
||||
BIT4Log.Warning<UXUtils>($"{fieldInfo!.Name}:{e.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user