I have built myself a generic collection class which is defined like this.
public class StatisticItemHits<T>{...}
This class can be used with int
and string
values only. However this
public class StatisticItemHits<T> where T : string, int {...}
won't compile. What am I doing wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…