Skip to Main Content
Customer Feedback

We love feedback from you on our products and the problems in your daily work that you would like us to solve. Please describe the challenge you're encountering and your desired outcome. Be as detailed as possible.

For technical issues or bugs please head to Support or our Developer Community. You can assign up to 20 votes in total. Thank you for your feedback.

Status explanation: 'Future Consideration' = Continuing to collect further feedback, not planned at this time. 'Investigating' = Prioritized for deeper customer and feasibility investigations ahead of planning development.

Categories Technical
Created by Guest
Created on May 2, 2024

Add Generics Support to Various Attributes

C# 11 added support for attributes with generics. It would be nice to be able to use that with various Optimizely attributes.


Some examples of attribute I can think of this can be added to are SelectOne, SelectMany and ModuleDependency.


[SelectOne<ShapesSelectionFactory>()]

[ModuleDependency<FindInitializationModule>()]


With generics developers can also get validation at compile time instead of runtime or startup if the attribute parameters don't implement the required interface or inherit a certain base class.