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.
我有代码:
IContainer container = ...; IContainer copy = container;
但我认为,它不会对这个 IContainer 进行深度复制。
有人知道如何制作 IContainer 的深层副本吗?
您应该创建类似于原始容器的新容器,然后IPacket像正常读/写一样从一个容器复制到另一个容器。
IPacket