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
As Pieter said, you cannot use a compile-time check to to this. However, you can do the following at runtime:
if(!(typeof(N).equals(typeof(int32))) && !(typeof(N).equals(typeof(decimal)))) // do something