我正在努力掌握泛型和接口。接受泛型和返回对象会对性能产生影响吗?
Public Interface Interface1
Sub load(reader As SqlDataReader)
End Interface
Public Interface Interface2
Function insert(Of T)(ByVal record As T) As Object
End Interface
返回的对象需要访问load()
方法。