Fixed Type.GetNestedType(). The name passed in is not escaped, so we should match with __Name.

This commit is contained in:
jfrijters 2011-01-13 07:08:00 +00:00
Родитель 4bac6ca9f4
Коммит 44dc4dfabc
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -756,7 +756,8 @@ namespace IKVM.Reflection
{
foreach (Type type in GetNestedTypes(bindingAttr))
{
if (type.Name == name)
// FXBUG the namespace is ignored
if (type.__Name == name)
{
return type;
}