F
Frans Bouma [C# MVP]
Tom said:isSelected in big DataGrids is very time-consuming. I would be nice
to have a property with some kind of list of currently selected rows.
I'd like to see an addition to the generics which are coming soon:
operator specifications in the restriction clause of the type
specification.
This is the MAJOR flaw in generics at the moment and I can't
understand why it isn't implemented in .NET 2.0. You can't solve it
with an interface because operators are defined as static.
So a generic method which adds two elments:
public T Add(T a, T b)
{
return a + b;
}
won't work, as the compiler doesn't know if T supports +. It would be
great if something like:
public T Add(T a, T b) where T : operator +
{
return a + b;
}
would be possible. And it's a missed chance this isn't possible with
..NET 2.0 generics, especially when you know a generic type at runtime
is just a block of IL generated for you, e.g. it perfectly would have
been possible to do this.
FB
--