![]() |
Type Array Struktur aus Delphi wie in C# umsetzen?
Hallo Leute,
ich habe da folgenden Delphi Beispielcode:
Delphi-Quellcode:
Wie würde denn o.g. Delphi Code in C# praktisch umgesetzt werden?type TmyRecord = record eintragEins = integer; eintragZwei = double; end; TmyRecords = array of TmyRecord; Danke, Gruß pajofego |
Re: Type Array Struktur aus Delphi wie in C# umsetzen?
Einen eigenen Typ für das Array brauchst du nicht, ab 2.0 kannst du einfach eine generische Liste benutzen (sonst musst du eben mit Typecasts leben).
Code:
struct MyStruct
{ int one; double two; public int One { get { [...] } List<MyStruct> myList = new List<MyStruct>(); |
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:07 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz