Commit 0bd93ceb authored by 潘栩锋's avatar 潘栩锋 🚴

修复 FObjBase.Reflect 写错了 ,continue 写了 return

parent 69dd847a
......@@ -80,10 +80,10 @@ namespace FObjBase.Reflect
{
var pushAttribute = eventInfo.GetCustomAttribute<PushAttribute>();
if (pushAttribute == null)
return;
continue;
if (anyEvents.Any(ae => ae.eventName == eventInfo.Name))
return;//已经添加了
continue;//已经添加了
var anyEvent = new AnyEvent()
{
......
......@@ -149,10 +149,10 @@ namespace FObjBase.Reflect
{
var pushAttribute = eventInfo.GetCustomAttribute<PushAttribute>();
if (pushAttribute == null)
return;
continue;
if (anyEvents.Any(ae => ae.name == eventInfo.Name))
return;//已经添加了
continue;//已经添加了
var anyEvent = new AnyEvent()
{
......@@ -183,10 +183,10 @@ namespace FObjBase.Reflect
{
var callAttribute = methodInfo.GetCustomAttribute<CallAttribute>();
if (callAttribute == null)
return;
continue;
if (anyCalls.Any(ae => ae.name == methodInfo.Name))
return;//已经添加了
continue;//已经添加了
var anyCall = new AnyCall()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment