Open egvijayanand opened 2 years ago
Exactly what I'm looking for wrt to the abstraction.
Seems like this has much more benefits than my original intention and this approach addresses another challenge when the name of the Command is different in the case of SearchBar, for example.
Now .NET MAUI engineering team should evaluate this and take it forward.
Regards, Vijay Anand E G
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
@Redth @PureWeen Any possibility of considering this as part of the .NET 8 release?
Can this be taken up into the release scope of .NET 9?
Description
I'm writing an extension method to bind to
Command
andCommandParameter
and make use of it as a Fluent API, but unfortunately, no direct way to check whether the type on which it's invoked implements Command and CommandParameter. As of now, doing a manual check on the types that implement those properties.If those two (bindable) properties are abstracted into an interface, say
ICommanding
, it would be easy to add that condition in the generic type check so that this Fluent API can be invoked only on them.Public API Changes
Existing implementation:
Proposed implementation and the same applies for all the types which implement those two properties:
Intended Use-Case
The first problem would be that every supported type needs to be included in the list for this feature to work and the bigger issue is when a new type with the command is introduced, the logic needs to be updated to include that type well.