//接口约束var interfaceRestric = new InterfaceRestrict<ComparableClass>();. 1; 2. 基类约束. class BaseClassRestric<T> where T : struct { }.
確定! 回上一頁