override Property

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
CyborgDE
Posts: 75
Joined: Wed Aug 12, 2015 9:21 pm

override Property

Postby CyborgDE » Sun Sep 20, 2015 4:06 am

Hello,

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

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 4 guests