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.
我只是在阅读该MethodInfo类型并遇到这种类型,并最初认为它是某种非托管类。然后看到它实际上是一个接口。
MethodInfo
有谁知道为什么没有命名IMethodInfo?我认为为接口加上前缀I是 .NET 中的标准做法。是因为一些命名冲突吗?
IMethodInfo
I
那是因为它是一个 COM 可见接口,这是 COM 中的约定:
[ComVisible(true), InterfaceType(ComInterfaceType.InterfaceIsIUnknown), TypeLibImportClass(typeof(MethodInfo)), Guid("FFCC1B5D-ECB8-38DD-9B01-3DC8ABC2AA5F"), CLSCompliant(false)] public interface _MethodInfo