문제

I was just reading through the MethodInfo type and came across this type and thought it was some sort of unmanaged class of some sort at first. Then saw that it's actually an interface.

Anyone knows why it wasn't named IMethodInfo? I thought prefixing interfaces with I was standard practice in .NET. Is it because of some naming collision?

도움이 되었습니까?

해결책

That's because it's a COM visible interface and that's a convention in COM:

[ComVisible(true), InterfaceType(ComInterfaceType.InterfaceIsIUnknown), TypeLibImportClass(typeof(MethodInfo)), Guid("FFCC1B5D-ECB8-38DD-9B01-3DC8ABC2AA5F"), CLSCompliant(false)]
public interface _MethodInfo
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top