Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
というクラスを宣言しましたWorkerPool(Of T)。Worker現在、すべての型 (String、Boolean、Integer など) を受け入れますが、 、 likeFileWorkerまたはの子型のみを受け入れたい場合を除きMeshWorkerます。これを行うことは可能ですか?
WorkerPool(Of T)
Worker
FileWorker
MeshWorker
これを試すことができます:
Public Class WorkerPool(Of T As Worker) End Class