in class_1 :
Code: Select all
public IEnumerable ItemsSource
{
in class_2 inherited from class_1:
Code: Select all
public class class_2 : class_1
{
public new IEnumerable ItemsSource
{
throws in javascript : Multiple matches found
Code: Select all
var getSingleFiltered = function (self, name, flags, type) {
var members = JSIL.GetMembersInternal(self, flags, type);
var result = null;
for (var i = 0, l = members.length; i < l; i++) {
var member = members[i];
if (member.Name === name) {
if (!result)
result = member;
else
throw new System.Reflection.AmbiguousMatchException("Multiple matches found");
}
}
return result;
};
Regards, Uwe