I want to restrict the possible types N can take-on using a constraint. I wish to restrict N to be either a int or a decimal.
public static Chart PopulateIn
It's not possible to constrain a generic parameter to a specific value type.
You can however force it to be a value type or struct by adding where N : struct, but that's all.
struct
where N : struct