私は2つのクラス....小包とFundParcelを持っている...と私はスーパータイプののIListにサブタイプのIEnumerableを変換しようとしている.... public class FundParcel : Parcel
{
/* properties defined here */
}
public class Parcel
{
/* properti
System.ICloneableインターフェイスを継承する汎用インターフェイスを作成しようとしますが、Clone()メソッドの戻り型はTです。もちろんT型には制約が必要ですこれがSystem.Objectクラスの継承であることを確認するには、次のコードは機能していません。 public interface ICloneable<T> : System.ICloneable where T : o
は、私のようなクラスを持っているので: public class AppActivityMapper implements ActivityMapper {
@Override public Activity getActivity(Place place) {
if(place instanceof ThisPlace) {
return new This