Why don’t UI frameworks use generics?
Posted
by
romkyns
on Programmers
See other posts from Programmers
or by romkyns
Published on 2012-04-13T11:41:28Z
Indexed on
2012/04/13
11:44 UTC
Read the original article
Hit count: 461
One way of looking at type safety is that it adds automatic tests all over your code that stop some things breaking in some ways. One of the tools that helps this in .NET is generics.
However, both WinForms and WPF are generics-free. There is no ListBox<T>
control, for example, which could only show items of the specified type. Such controls invariably operate on object
instead.
Why are generics and not popular with UI framework developers?
© Programmers or respective owner