C#-Quelltext
1: 2: 3: 4: 5: 6: 7: 8:
| class Program { private int blubb() { ... }
static void Main(string[] args) |
Ich habe eine C#-Konsolenanwendung mit Visual C# 2005 Express erstellt. Soweit so gut.
Ich habe innerhalb der Klasse Program, die schon vorgegeben war, die statische Main-Routine (war auch schon da) und eine selbst geschriebene private Methode blubb. Die möchte ich nun aus Main heraus aufrufen. Wie mache ich das?
Versuche mit this.blubb() oder wie in Delphi self.blubb oder auch nur der Methodenname an sich scheiterten.
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot