07-09-2016, 07:30 AM
Ok, this could be a quick hack:
First, change mCallsCount type from PropertyInfo to MethodInfo.
Then, change the two lines you mentioned in HasListeners() to:
and further down:
That should do the trick!
First, change mCallsCount type from PropertyInfo to MethodInfo.
Then, change the two lines you mentioned in HasListeners() to:
Code:
mCallsCount = mCallerList.GetType().PropertyByName("Count").GetGetMethod();
and further down:
Code:
mCount = (int)mCallsCount.Invoke(mCallerList, null);
That should do the trick!