Autor Beitrag
tomo2403
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Win10
C#, VS 2019
BeitragVerfasst: Fr 17.08.18 13:54 
In VB gibt es diesen Code:
ausblenden VB-Quelltext
1:
Dim name(3, 3) As Integer					

Kann mir das mal bitte jemand in C# übersetzen?!
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4764
Erhaltene Danke: 1052

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Fr 17.08.18 14:01 
Am ehesten wohl
ausblenden C#-Quelltext
1:
int[,] name = new int[4,4];					
(s.a. Arrays in Visual Basic)
Bei C# (bzw. generell .NET) gibt man die Anzahl an, bei VB den höchsten Index (daher der Unterschied um eins).
tomo2403 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Win10
C#, VS 2019
BeitragVerfasst: Fr 17.08.18 14:14 
Danke :D