是否存在可以在编译的 IL 中以某种方式引用 属性 的任何场景?

Is there any scenario in which a property can be somehow referenced in the compiled IL?

我正在使用 Mono.Cecil 修改程序集,涉及将代码从程序集集成到另一个程序集。部分问题涉及翻译对各种事物(例如类型和方法)的错误引用,并插入一些成员定义。

我的问题是是否存在 属性 本身可以被 IL 引用的场景(与其访问器方法相反)。换句话说,我是否需要 'fix' 对属性的引用?

没有任何指令以 属性 作为操作数。您可以简单地从 ILGenerator doesn't have any Emit(OpCode, PropertyInfo) overload: that overload would be needed to support such an instruction. Mono Cecil's ILProcessor 也没有任何此类重载这一事实中看出。