Closed AlanLiu90 closed 1 year ago
The args (string fullName
) could be null
before but will now throw if null
so we need a null
check at the beginning of the methods now (return early if null
).
I updated the code to check if fullName
is null
in these methods.
Thanks, merged!
This PR improves
CustomAttributeCollection.Find
,CustomAttributeCollection.FindAll
andCustomAttributeCollection.RemoveAll
by comparing the suffix of the full name first. It can avoid callingCustomAttribute.TypeFullName
in most of the time.In a workflow I'm using currently, this PR can reduce the total running time by 29%.