Implemented ToString() for EventInfo and PropertyInfo.

This commit is contained in:
jfrijters 2011-09-29 05:51:30 +00:00
Родитель fa9d2533d2
Коммит 92dfa2449d
2 изменённых файлов: 10 добавлений и 0 удалений

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

@ -75,5 +75,10 @@ namespace IKVM.Reflection
{ {
return new GenericEventInfo(this.DeclaringType.BindTypeParameters(type), this); return new GenericEventInfo(this.DeclaringType.BindTypeParameters(type), this);
} }
public override string ToString()
{
return this.DeclaringType.ToString() + " " + Name;
}
} }
} }

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

@ -164,5 +164,10 @@ namespace IKVM.Reflection
{ {
return new GenericPropertyInfo(this.DeclaringType.BindTypeParameters(type), this); return new GenericPropertyInfo(this.DeclaringType.BindTypeParameters(type), this);
} }
public override string ToString()
{
return this.DeclaringType.ToString() + " " + Name;
}
} }
} }