SORU
22 NİSAN 2010, PERŞEMBE


Catch blok döndürür?

. Catch bloğu içinde bir return ifadesi olması yanlış mı? Alternatifler nelerdir?
ben.e:

public bool SomeFunction()
{
    try
    {
        //somecode
        return true;
    }
    catch(Exception ex)
    {
        MessageBox.Show(ex.message);
        return false;
    }

}

CEVAP
22 NİSAN 2010, PERŞEMBE


Normalde catch blok döndürür. Normalde iyi bir fonksiyonel kod.

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Malwarebytes

    Malwarebytes

    22 Temmuz 2007
  • SDSARG3

    SDSARG3

    14 Mart 2009
  • Vicious Computers

    Vicious Comp

    14 EKİM 2006