Is there ever a reason to use goto in modern .NET code?

前端 未结 19 1559
野性不改
野性不改 2020-12-08 14:19

I just found this code in reflector in the .NET base libraries...

    if (this._PasswordStrengthRegularExpression != null)
    {
        this._PasswordStreng         


        
19条回答
  •  囚心锁ツ
    2020-12-08 14:40

    I never even coded with GO TO back when I wrote FORTRAN.

    I've never had to use it. I can't see why any modern language would demand such a thing from a user. I'd say unequivocally "no".

提交回复
热议问题