[Mono-devel-list] Reflection : ConstructorInfo Name Property
Cezar Nasui
cezar.nasui at polymtl.ca
Tue Nov 11 14:51:29 EST 2003
Hi,
The Name property of ConstructorInfo returns always ".ctor" instead of
the name of the member.
"ctor" is which ConstructorName public field returns.
It this a bug?
Cezar
<snip>
ConstructorInfo [] ctrInfos =
targetClass.GetConstructors(BindingFlags.Public |
BindingFlags.NonPublic | BindingFlags.Instance |
BindingFlags.DeclaredOnly );
foreach(ConstructorInfo ctrInfo in ctrInfos)
{
Console.WriteLine("Construcor ctrInfo : {0}", ctrInfo.Name);
}
</snip>
More information about the Mono-devel-list
mailing list