泛型约束

class MyClass<T, U>
    where T : class///约束T参数必须为“引用 类型{ }”
    where U : struct///约束U参数必须为“值 类型”
{ }