How would you give answer to the question if a type definition has a default constructor?
(--or is there a better naming for that thing that could be called by an activator or by new MyType() without args)
i tried the following two approaches:
public static bool HasDefaultConstructor(this ITypeDefinition type, IName ctorName)
//return TypeHelper.GetMethod(type, ctorName) != Dummy.Method;
//return type.GetMatchingMembers(member => member.Name == ctorName).Any();
both producing false for any type that i tested (a lot).
i cached the ".ctor" name object like that:
FctorName = FHost.NameTable.GetNameFor(".ctor");