Έχουν δημοσιευτεί Πέμπτη, 9 Αυγούστου 2007 1:07 μμ από το μέλος The Development Blog

Throw command difference in C# and VB.NET

Have you ever noticed that throw command behaves somewhat differently in VB.NET and C#? See the following two code parts. It's the same thing written in VB.NET and C#. DummyMethod throws an exception (line 12) that is caught by a try/catch statement in the Main method. Line 7 writes the exception into the console window. 1: static void Main( string [] args) { 2: try 3: { DummyMethod(); } 4: catch (Exception ex) 5: { Console.WriteLine(ex); 6: } 7: Console.ReadKey(); 8: } 9: 10: private static void DummyMethod()

Διαβάστε περισσότερα »

Share


Ενημέρωση για Σχόλια

Αν θα θέλατε να λαμβάνετε ένα e-mail όταν γίνονται ανανεώσεις στο περιεχόμενο αυτής της δημοσίευσης, παρακαλούμε γίνετε συνδρομητής εδώ

Παραμείνετε ενήμεροι στα τελευταία σχόλια με την χρήση του αγαπημένου σας RSS Aggregator και συνδρομή στη Τροφοδοσία RSS με σχόλια

Σχόλια:

Χωρίς Σχόλια

Ποιά είναι η άποψή σας για την παραπάνω δημοσίευση;

(απαιτούμενο)
απαιτούμενο
προαιρετικό
απαιτούμενο
ÅéóÜãåôå ôïí êùäéêü:
CAPTCHA Image