Timeline for Nullable Generics - Implementing SequentialSearchST in C#
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 12, 2015 at 5:09 | vote | accept | gangreen | ||
Jan 12, 2015 at 5:09 | comment | added | gangreen |
Re #1 - the non-standard TValue constraint I have allows for System.Nullable structs like int?, but not int (enforced at compile time for the latter). So, class won't work. Re #2 - this effectively answers my question of whether it is possible to throw a compile time error (which is no) - so, I'll mark this as the answer. Between this and @mjolka's answer, it appears that changing the API would make the most sense.
|
|
Jan 11, 2015 at 18:52 | history | answered | ChrisWue | CC BY-SA 3.0 |