<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>WinForms</title><link>https://www.dotnetzone.gr:443/cs/forums/12/ShowForum.aspx</link><description>Θέματα για rich client / windows εφαρμογές, σε οποιαδήποτε γλώσσα (VB.NET, C#, managed C++, κ.α.)</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Ζει το GOTO ?! Ζει!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/17228.aspx</link><pubDate>Tue, 26 Sep 2006 18:50:39 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:17228</guid><dc:creator>elam</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/17228.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=17228</wfw:commentRss><description>Λοιπόν, όσο και να σας φαίνεται περίεργο, υπάρχουν πολλοί προγραμματιστές που, ακόμη και σήμερα, γράφουν αποκλειστικά με goto...&lt;br&gt;...και αυτό γίνεται γιατί γράφουν σε assembly, και δεν γίνεται διαφορετικά!&lt;br&gt;&lt;br&gt;Το θέμα είναι πώς το χρησιμοποιούν. Το goto μπαίνει για να φτιάξει τα if, while, case, και όλα τα καλούδια του δομημένου προγραμματισμού που δεν υπάρχουν σε assembly.&lt;br&gt;&lt;br&gt;&lt;br&gt;Το ακόλουθο σε C (σκέτο, ++ ή #):&lt;br&gt;-=-=-=-=-=-=-=-=-&lt;br&gt;&lt;b&gt;if(a&amp;gt;0)
&lt;br&gt;
{
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...foo...
&lt;br&gt;
}
&lt;br&gt;
else
&lt;br&gt;
{
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...bar...
&lt;br&gt;
}&lt;/b&gt;&lt;br&gt;-=-=-=-=-=-=-=-=-&lt;br&gt;&lt;br&gt;&lt;br&gt;Γίνεται σε assembly έτσι:&lt;br&gt;-=-=-=-=-=-=-=-=-&lt;br&gt;&amp;nbsp;&lt;b&gt;&amp;nbsp; [Compare the following with zero] a&lt;br&gt;&amp;nbsp;&amp;nbsp; [if greater then goto] :1&lt;br&gt;&amp;nbsp;&amp;nbsp; [goto] :2&lt;br&gt;:1 ...foo...&lt;br&gt;&amp;nbsp;&amp;nbsp; [goto] :3&lt;br&gt;:2 ...bar...&lt;br&gt;:3&lt;/b&gt;&lt;br&gt;-=-=-=-=-=-=-=-=-&lt;br&gt;...για να θυμίζει την παραπάνω δομή και να διαβάζεται εύκολα.&lt;br&gt;&lt;br&gt;&lt;br&gt;Δεν υπάρχει κάτι που να μην γίνεται με goto, μπορείτε να κάνετε τα πάντα.&lt;br&gt;&lt;br&gt;Φανταστείτε όμως τώρα τη φρίκη να δουλεύετε σε κώδικα άλλου, ο οποίος χρησιμοποίησε τα goto όχι όπως επάνω, αλλά με λίγη ... φαντασία!&lt;br&gt;&lt;br&gt;Για να ξεπεραστούν τέτοιες τραγικές καταστάσεις, εδώ και σαράντα χρόνια (κυριολεκτικά) οι επιστήμονες που όρισαν την επιστήμη της πληροφορικής (βλέπε Dijkstra, Wirth, κλπ) πρότειναν τον δομημένο προγραμματισμό, ώστε να αποφεύγονται τα goto και να διαβάζεται εύκολα ο κώδικας.&lt;br&gt;&lt;br&gt;Κανείς δεν σας απαγορεύει να βάζετε goto σε C(σκέτο, ++ ή #) - όπως κάνει η java που με κομψό τρόπο, παλιότερα, έλεγε "goto not supported". Έτσι ο υπολογιστής θα σας καταλαβαίνει ενώ εσείς θα μπορείτε να μπερδεύετε τους άλλους, και ίσως, στο μέλλον, τον εαυτό σας.&lt;br&gt;&lt;br&gt;Καλύτερα όμως, αφιερώστε λίγο χρόνο και γράψτε τον κώδικά σας δομημένα. Ένας κώδικας που διαβάζεται, μπορεί να διορθωθεί, να επεκταθεί και να συντηρηθεί...από εσάς αλλά και από άλλους!</description></item><item><title>Απ: Ζει το GOTO ?! Ζει!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/17157.aspx</link><pubDate>Tue, 26 Sep 2006 00:04:55 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:17157</guid><dc:creator>Aggelos Biboudis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/17157.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=17157</wfw:commentRss><description>Δεν ξέρω τπτ από managed code, τίποτα απο C# , τπτ απο .ΝΕΤ. Μετά το τελευταίο devday (το πρώτο μου όμως, δυστυχώς) άρχισα να διαβάζω τις πρώτες μου αράδες για .ΝΕΤ framework για να δουλέψω με C#. Μόνο C\C++.... Χρειάστηκα κανα δυο φορές να κάνω goto σε πρόγραμμα c. Αν το έβαζα, με το που κοίταζε ο καθηγητής την εργασία ήξερα οτι εκεί τελείωναν όλα. &lt;br&gt;
&lt;br&gt;
Αντ'αυτού λοιπόν ένα &lt;br&gt;
&lt;br&gt;
i=1; &lt;br&gt;
&lt;br&gt;
while ( --i ) {&lt;br&gt;
&lt;br&gt;
   if ( ) &lt;br&gt;
&lt;br&gt;
     break; // goto line 41 ξέρω γω&lt;br&gt;
&lt;br&gt;
} //line 40&lt;br&gt;
&lt;br&gt;
και όλοι είμασταν happy. Sry για το off topic με το c - comment μου αλλά ήθελα να το πω!! &lt;img src="/cs/emoticons/emotion-4.gif" alt="Stick out tongue" /&gt; &lt;img src="/cs/emoticons/emotion-4.gif" alt="Stick out tongue" /&gt;  &lt;img src="/cs/emoticons/emotion-4.gif" alt="Stick out tongue" /&gt; SIGCONT</description></item><item><title>Απ: Ζει το GOTO ?! Ζει!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/17152.aspx</link><pubDate>Mon, 25 Sep 2006 22:03:54 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:17152</guid><dc:creator>cap</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/17152.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=17152</wfw:commentRss><description>Εντάξει βρε παιδιά...σε ακαδημαϊκό επίπεδο καλό ειναι το GOTO. &lt;br /&gt;
&lt;br /&gt;
Αλλα σε production επίπεδο, αν έχεις k nested loops ή κατι δεν πάει ΚΑΘΟΛΟΥ καλά με την αρχιτεκτονική σου ή έχεις μια πολύ εξειδικευμένη κατάσταση / πρόβλημα να επιλύσεις. Και στα δυο, είναι δικαιολογημένη η χρήση του GOTO, για διαφορετικούς βέβαια λόγους.&lt;br /&gt;
&lt;br /&gt;
Προσωπική μου άποψη, ε; Μην βαράτε! :)&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Απ: Ζει το GOTO ?! Ζει!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/17151.aspx</link><pubDate>Mon, 25 Sep 2006 21:53:47 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:17151</guid><dc:creator>thAAAnos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/17151.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=17151</wfw:commentRss><description>Νομίζω οτι το goto είναι ακόμα χρήσιμο και ευανάγνωστο σε μερικες περιπτώσεις...&lt;br /&gt;
&lt;br /&gt;
για κανε break από ενα switch στο n-th inner loop στο k-th loop χωρις goto...&lt;br /&gt;
&lt;br /&gt;
και χωρις exceptions...</description></item><item><title>Απ: Ζει το GOTO ?! Ζει!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/15376.aspx</link><pubDate>Tue, 01 Aug 2006 23:42:12 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:15376</guid><dc:creator>teDeV</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/15376.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=15376</wfw:commentRss><description>καλα λέτε ότι θέλετε... για μένα το goto είναι όλα τα λεφτά, όποιος δεν συμφωνεί λίγο με νοιάζει. το goto είναι κάτι που το χρησιμοποιώ αρκετές φορές ΑΛΛΑ ξέρω Πως και Που να το χρησιμοποιώ. δεν χρειάστηκε ούτε μία φορά να αλλάξω μία ροή goto...</description></item><item><title>Απ: Ζει το GOTO ?! Ζει!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/15265.aspx</link><pubDate>Thu, 27 Jul 2006 22:28:27 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:15265</guid><dc:creator>DrMad</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/15265.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=15265</wfw:commentRss><description>&lt;P&gt;Ας είναι καλά το Spectrumάκι και ο θείος Clive (όπου και να βρίσκεται αυτή τη στιγμή) που μας έβαλε από το δημοτικό στη λογική του προγραμματισμού, αλλά η αλήθεια είναι ότι με τα πολλά Goto's η όλη φάση ήταν κάπως έτσι:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" hspace=0 src="http://www.zonalatina.com/Zldata60b.jpg" align=baseline border=0&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Απ: Ζει το GOTO ?! Ζει!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/15263.aspx</link><pubDate>Thu, 27 Jul 2006 21:47:38 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:15263</guid><dc:creator>Mitsaras</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/15263.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=15263</wfw:commentRss><description>Σε προκαλώ να αναλάβεις VB6 project, γεμάτο με GOTO και On Error GOTO's... (ευτυχώς το project αυτό εγκαταλείφθηκε από τον πελάτη, αν και πληρώθηκε).</description></item><item><title>Απ: Ζει το GOTO ?! Ζει!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/15261.aspx</link><pubDate>Thu, 27 Jul 2006 20:40:45 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:15261</guid><dc:creator>evliatsas</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/15261.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=15261</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;table width="85%"&gt;&lt;tr&gt;&lt;td class="txt4"&gt;&lt;img src="/cs/Themes/default/images/icon-quote.gif"&gt;&amp;nbsp;&lt;strong&gt;KelMan wrote:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="quoteTable"&gt;&lt;table width="100%"&gt;&lt;tr&gt;&lt;td valign="top" class="txt4"&gt;
&lt;P&gt;Θυμάστε τη GW-Basic; Την Basic του ZX Spectrum; Του Amstrad; Έχετε γράψει ποτέ κώδικα σε αυτές τις εκδόσεις της BASIC; Έχετε χρησιμοποιήσει το απεχθές "GOTO" statement; Ναι ε; Τς, τς, τς... Αλλά εδώ και καμιά δεκαριά χρόνια έχετε αποβάλει τέτοιες κακές συνήθειες και πλεόν ακολουθείτε θρησκευτικά το structured programming και σχεδόν το είχατε ξεχάσει μέχρι που σας το θύμισα τώρα ε;&lt;/P&gt;
&lt;P&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/BLOCKQUOTE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Και μόνο η χθεσινή ανάγνωση του topic έφτασε για να έχω εφιάλτες όλο το βράδυ.&lt;img src="/cs/emoticons/emotion-9.gif" alt="Crying" /&gt;&lt;/P&gt;
&lt;P&gt;Ειλικρινά δεν νοσταλγώ την εποχή, που έκανα insert ή alter μια γραμμή κώδικα σε GWBASIC και έπειτα άλλαζα (μετά κόπου και ιδρώτα) καμιά 50αριά GOTO.&lt;/P&gt;
&lt;P&gt;Φτού απαταξάμην. (και το σημάδι του σταυρού τρείς φορές απαγγέλοντάς το)&lt;/P&gt;</description></item><item><title>Απ: Ζει το GOTO ?! Ζει!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/15258.aspx</link><pubDate>Thu, 27 Jul 2006 20:30:12 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:15258</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/15258.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=15258</wfw:commentRss><description>Ως προς το #1 να πω ότι το post ήταν fun oriented (γι αυτό άλλωστε το στόλισα με μπόλικα smileys) και φυσικά δεν τίθεται θέμα κρίσης του άγνωστου developer. Ακόμα και το πραγματικό source να είχα, το να κρίνεις κώδικα out-of-context (χρόνος, χρήμα, κλπ) δεν είναι τίποτε άλλα παρά ακαδημαϊκή άσκηση...</description></item><item><title>Απ: Ζει το GOTO ?! Ζει!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/15256.aspx</link><pubDate>Thu, 27 Jul 2006 20:11:58 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:15256</guid><dc:creator>agmarios</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/15256.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=15256</wfw:commentRss><description>τώρα που ξεκαθάρισε το θέμα νομίζω ότι:&lt;br /&gt;
&lt;br /&gt;
1. Είναι άδικο να κρίνεις έναν προγραμματιστή από τον decompiled κώδικα αφού παρεμβάλεται και ο compiler και ο decompiler.&lt;br /&gt;
&lt;br /&gt;
2. H goto είναι είναι μια χρησιμότατη εντολή χωρίς την οποία δεν μπορούμε να κάνουμε βήμα, απλά είναι δυσανάγνωστη και γι αυτό οι γλώσσες την αποφεύγουν. Σε low level προγραμματισμό πραγματικά πετάει.</description></item><item><title>Απ: Ζει το GOTO ?! Ζει!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/15255.aspx</link><pubDate>Thu, 27 Jul 2006 19:11:29 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:15255</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/15255.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=15255</wfw:commentRss><description>&lt;P&gt;Τελικά, βρήκα άκρη... Αθώος ο developer!&lt;/P&gt;
&lt;P&gt;Αν λάβουμε υπόψην μας αυτό: &lt;A href="http://msdn.microsoft.com/vcsharp/programming/language/ask/switch/"&gt;http://msdn.microsoft.com/vcsharp/programming/language/ask/switch/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Βλέπουμε ότι το παράδειγμα του MSDN για την switch &lt;/P&gt;
&lt;P&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt; &lt;br /&gt;&lt;br /&gt;        &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;public&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;static&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;void&lt;/span&gt; Main()&lt;br /&gt;        {&lt;br /&gt;            Console.WriteLine(&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Coffee sizes: 1=Small 2=Medium 3=Large"&lt;/span&gt;);&lt;br /&gt;            Console.Write(&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Please enter your selection: "&lt;/span&gt;);&lt;br /&gt;            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;string&lt;/span&gt; s &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; Console.ReadLine();&lt;br /&gt;            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;int&lt;/span&gt; n &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;int&lt;/span&gt;.Parse(s);&lt;br /&gt;            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;int&lt;/span&gt; cost &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; 0;&lt;br /&gt;            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;switch&lt;/span&gt; (n)&lt;br /&gt;            {&lt;br /&gt;                &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;case&lt;/span&gt; 1:&lt;br /&gt;                    cost += 25;&lt;br /&gt;                    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;break&lt;/span&gt;;&lt;br /&gt;                &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;case&lt;/span&gt; 2:&lt;br /&gt;                    cost += 25;&lt;br /&gt;                    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;goto&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;case&lt;/span&gt; 1;&lt;br /&gt;                &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;case&lt;/span&gt; 3:&lt;br /&gt;                    cost += 50;&lt;br /&gt;                    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;goto&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;case&lt;/span&gt; 1;&lt;br /&gt;                &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;default&lt;/span&gt;:&lt;br /&gt;                    Console.WriteLine(&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Invalid selection. Please select 1, 2, or 3."&lt;/span&gt;);&lt;br /&gt;                    &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;break&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;if&lt;/span&gt; (cost !&lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; 0)&lt;br /&gt;                Console.WriteLine(&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Please insert {0} cents."&lt;/span&gt;, cost);&lt;br /&gt;            Console.WriteLine(&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Thank you for your business."&lt;/span&gt;);&lt;br /&gt;        }&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Γίνεται decompiled έτσι: &lt;/P&gt;
&lt;P&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;public&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;static&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;void&lt;/span&gt; Main()&lt;br /&gt;{&lt;br /&gt;      Console.WriteLine(&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Coffee sizes: 1=Small 2=Medium 3=Large"&lt;/span&gt;);&lt;br /&gt;      Console.Write(&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Please enter your selection: "&lt;/span&gt;);&lt;br /&gt;      &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;string&lt;/span&gt; text1 &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; Console.ReadLine();&lt;br /&gt;      &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;int&lt;/span&gt; num1 &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;int&lt;/span&gt;.Parse(text1);&lt;br /&gt;      &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;int&lt;/span&gt; num2 &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; 0;&lt;br /&gt;      &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;switch&lt;/span&gt; (num1)&lt;br /&gt;      {&lt;br /&gt;            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;case&lt;/span&gt; 1:&lt;br /&gt;                  &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;break&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;case&lt;/span&gt; 2:&lt;br /&gt;                  num2 += 0x19;&lt;br /&gt;                  &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;break&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;case&lt;/span&gt; 3:&lt;br /&gt;                  num2 += 50;&lt;br /&gt;                  &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;break&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;            &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;default&lt;/span&gt;:&lt;br /&gt;                  Console.WriteLine(&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Invalid selection. Please select 1, 2, or 3."&lt;/span&gt;);&lt;br /&gt;                  &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;goto&lt;/span&gt; Label_0060;&lt;br /&gt;      }&lt;br /&gt;      num2 += 0x19;&lt;br /&gt;Label_0060:&lt;br /&gt;      &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;if&lt;/span&gt; (num2 !&lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; 0)&lt;br /&gt;      {&lt;br /&gt;            Console.WriteLine(&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Please insert {0} cents."&lt;/span&gt;, num2);&lt;br /&gt;      }&lt;br /&gt;      Console.WriteLine(&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Thank you for your business."&lt;/span&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt; &lt;/span&gt;&lt;/P&gt;</description></item><item><title>Απ: Ζει το GOTO ?! Ζει!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/15254.aspx</link><pubDate>Thu, 27 Jul 2006 18:49:40 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:15254</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/15254.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=15254</wfw:commentRss><description>Σωστά, αλλά δεν θα έπρεπε να έχει κώδικα πριν το break? Ή μήπως για κάθε break βάζει διαφορετικό label? Και μετά, αν έχει πολλά breaks, θα έχει πολλά labels; &lt;br /&gt;
&lt;br /&gt;
Οπότε, τι χρειάζεσαι τον Obfuscator? &lt;img src="/cs/emoticons/emotion-2.gif" alt="Big Smile" /&gt;</description></item><item><title>Απ: Ζει το GOTO ?! Ζει!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/15251.aspx</link><pubDate>Thu, 27 Jul 2006 17:40:59 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:15251</guid><dc:creator>agmarios</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/15251.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=15251</wfw:commentRss><description>&lt;P&gt;Η goto είναι μέσα σε όλα τα instruction sets των επεξεργαστών και η χρήση της είναι ευρύτατη. Πάρα πολλές εντολές των γλωσσών όταν μεταφράζονται παράγουν κώδικα που περιέχει την goto. Για παράδειγμα&amp;nbsp;η for, η&amp;nbsp;switch και άλλες&amp;nbsp;είναι αδύνατο να υλοποιηθούν χωρίς την goto.&lt;/P&gt;
&lt;P&gt;Στην συγκεκριμένη περίπτωση η goto Υλοποιεί το break που έβαλε ο προγραμματιστής στο case&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Απ: Ζει το GOTO ?! Ζει!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/15244.aspx</link><pubDate>Thu, 27 Jul 2006 05:27:31 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:15244</guid><dc:creator>Mitsaras</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/15244.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=15244</wfw:commentRss><description>Χμ, γιατί το goto δεν ακολουθεί το σωστό casing? Μήπως είναι κάποιου είδους αστειάκι από την πλευρά του αρθρογράφου;</description></item><item><title>Απ: Ζει το GOTO ?! Ζει!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/15242.aspx</link><pubDate>Thu, 27 Jul 2006 05:03:58 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:15242</guid><dc:creator>Dimitris Papadimitriou</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/15242.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=15242</wfw:commentRss><description>αν κάνεις decompile σε C# τι σου βγάζει;</description></item></channel></rss>