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
The existing code which simply called GetCustomAttributes doesn't take into consideration those attributes added via a TypeDescriptor. As such, you should use the TypeDescriptor.AddAttributes which gets both those defined on the class at compile time, plus those added at runtime.
Note: In a semi-related issue, here, the CategoryOrderAttribute needs to add the following override to work correctly.
public override object TypeId => CategoryValue;
I don't have the ability to create PRs or I'd submit this myself, but here's the needed function.
The text was updated successfully, but these errors were encountered:
MarqueIV
changed the title
Update ObjectContainerHelper.GetCategoryOrder to use the TypeDescriptor to get programmatically-added attributes
Update ObjectContainerHelper.GetCategoryOrder to use the TypeDescriptor to get attributes
Aug 19, 2019
The existing code which simply called GetCustomAttributes doesn't take into consideration those attributes added via a TypeDescriptor. As such, you should use the TypeDescriptor.AddAttributes which gets both those defined on the class at compile time, plus those added at runtime.
Note: In a semi-related issue, here, the CategoryOrderAttribute needs to add the following override to work correctly.
I don't have the ability to create PRs or I'd submit this myself, but here's the needed function.
HTH!
Mark
The text was updated successfully, but these errors were encountered: