“Overloads” keyword in VB.NET

后端 未结 6 663
予麋鹿
予麋鹿 2020-12-06 16:29

Do you really need this keyword to overload methods? What is the difference between using the overloads keyword vs. just having different method signatures?

6条回答
  •  时光说笑
    2020-12-06 17:14

    It was a design consideration. Of course it (VB) could have been designed to infer overloading by the function signature (like in C#) - so the Overloads keyword itself could have been omitted but in the end it's just in line with Visual Basic's expressiveness (which some consider overhead) and it was only a language design decision.

提交回复
热议问题