从阅读文档来看,您似乎必须发送一个字节数组作为数据。这对于跨程序互操作性很有意义,但我只想在我的应用程序中交换数据。是否可以将对象引用作为数据传递?
最佳答案
来自 Johannes Sasongko 的评论:
From reading the docs, I don't think that's possible. A workaround is to use a dictionary to store "pointers" and their values.
关于c# - 在 Gtk# 中,如何在拖放中传递对象引用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2188283/