Closed samtrion closed 4 years ago
return an empty array if nothing was found.
Should it check .Length == 0
rather than == null
then?
Why an additional check, when foreach is handling this?
Ah was thinking of List<T>
which creates an enumerator. Should be fine for array.
Thank you! 😄
Package 0.1.6 has been released on NuGet
Both
type.GetMethods(...)
andmethodInfo.GetCustomAttributes<>()
return an empty array if nothing was found.