class MyClass<T> //宣告具有一個型別引數的泛型類,可以有多個型別引數,用,隔開:<T, U> { public T MyObj; //宣告T型別的欄位 private Type ...
確定! 回上一頁