如何构建一个应该存储给定接口(Sortable)元素的链接列表?要建立的接口是:我对列表的实现称为public class DoublyLinkedList,它将数据存储在类public class DoublyLinkedListElement是否可以使用DoublyLinkedList的方法将Product类型的对象添加到DoublyLinkedList中,而无需将类型转换为DoublyLinkedListEle
}
// here I also tried: return aResult as T;作为方法ChangeType,我使用这个方法:。具有String类型的列运行良好,但Integer存在一个问题。NotImplementedException();}
对于String,一切正常,但对于Integer,我得到了“从'System.Int32‘到’Code.Data.Integer‘的无效转换我想