You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SearchableAttribute first searches every type in the assembly for the attribute, this includes nested types. Then, it searches the members of each type, which includes nested types. As a result, a SearchableAttribute applied to a nested type will be included in the instancesList twice.
SearchableAttribute first searches every type in the assembly for the attribute, this includes nested types. Then, it searches the members of each type, which includes nested types. As a result, a SearchableAttribute applied to a nested type will be included in the instancesList twice.
For example, in this case:
A call to SearchableAttribute.GetInstances() should return a list with 1 element, but the list instead contains 2 TestAttributes that target Inner.
As far as I know this affects nothing in vanilla, but can cause unintended behaviour for modders.
The text was updated successfully, but these errors were encountered: