Why is Nullable<T> considered a struct and not a class?
问题 I'm trying to define a generic class that takes any type that can be set to null: public abstract class BundledValue_Classes<T> where T : class { private Tuple<T, object> _bundle= new Tuple<T, object>(); public T Value { get { return _bundle == null ? null : _bundle.Item1; } set { _bundle = new Tuple<T, object>(value, obj); } } //... This works fine. I also want to create a derived class that can take any primitive type (int, double, etc), and simply resolve that into the same as the above