是否有可能获得未知类型T的MinValue – 或MaxValue?在Int中有Int.MinValue和Int.MaxValue ??
谢谢
解决方法
is it possible to get the Min – or MaxValue of an unkwown Type T?
不,它不是,原因很简单,如果T未知,那你怎么知道它甚至有最小值或最大值?
谢谢
is it possible to get the Min – or MaxValue of an unkwown Type T?
不,它不是,原因很简单,如果T未知,那你怎么知道它甚至有最小值或最大值?