New answers tagged

1

I may be wrong, but I think you're trying to solve an XY-problem. If I understand the term "DescriptiveStatisticalSet", you want to provide a data set class, that exposes some significant statistical properties and therefore the generic type parameter of the set must be a numeric type of some kind (int, double, ??). To fix that, you try to develop ...


1

As has been said in the comments, it's unclear why you feel you need this behaviour to restrict the types used. There's an interesting discussion around constraining types here, which includes a link to example code. So, there's a couple of questions. Why do you need to restrict it to double / integer types? Is it really that you want to do is restrict it ...


1

I'm only adding some notes here on addition of Miguel answer, his answer gives you what you asked, but what you really want is to divide this method into several methods, each method would handle one thing and only one thing. here is a list of the methods you need : Converting List<ProjectObject<T>> to Dictionary. Creating a Note from ...


4

Wow, those methods are pretty similar. Initially, these objects: List<ProjectObject<ExhaustEquipment>> exhaustEquipment List<ProjectObject<Infiltration>> infiltration are only different in which template parameter refers (ExhaustEquipment,Infiltration), so you could do a generic method: //this all, could be written as a Generic ...


Top 50 recent answers are included