Question

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?

Was it helpful?

Solution

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top