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

  • Doc Adams

    Doc Adams

    20 HAZİRAN 2007
  • Study with Substance P

    Study with S

    31 Mayıs 2008
  • Crossover

    Crossover

    18 HAZİRAN 2007