日期:2014-05-17  浏览次数:20678 次

这段delphi代码怎么转成C#语言呀
   TMemberCashCard_Rd = Record  
    iMemberID: integer;
   sMemberCode: Array[0..255] of char;
    dateValid: SystemTime;
   mBalance: integer;
   mBottom: integer;
   mAmount: integer;
   bRecycle: Integer;
end;

------解决方案--------------------
integer 就是 int型 如DELPHI:iMemberID: integer; C# int iMemberID; sMemberCode: Array[0..255] of char; 可以byte[256] sMemberCode; dateValid: SystemTime; 可以 datetime dateValid——仅供参考
------解决方案--------------------
struct TMemberCashCard_Rd
{
    public int iMemberID;
    public StringBuilder sMemberCode;
    public SYSTEMTIME dateValid;
    ...
}

struct SYSTEMTIME 
{
    public ushort wYear;
    public ushort wMonth; 
    public ushort wDayOfWeek; 
    public ushort wDay; 
    public ushort wHour; 
    public ushort wMinute; 
    public ushort wSecond; 
    public ushort wMilliseconds; 
}