private MethodDefinition [] GetConstructors (TypeDefinition type)
{
ArrayList list = new ArrayList ();
var ctors = type.Methods.Where (m => m.IsConstructor);//type.GetConstructors (flags);
foreach (MethodDefinition constructor in ctors) {
// we're only interested in public or protected members
if (!MustDocumentMethod(constructor))
continue;
list.Add (constructor);
}
return (MethodDefinition []) list.ToArray (typeof (MethodDefinition));
}