chezbrgrs
asked on
Converting VP.NET to C#
Hello Experts -
I am converting some VB.NET code to C#. Can someone please help me with the following block of code?
I am converting some VB.NET code to C#. Can someone please help me with the following block of code?
With _dstMemberData.Tables(MEMBER_DATA_TABLES.MEMBER_ACCOUNT).Rows(0) _
_dtmLastActivity = IIf(IsDate(.Item("LastLoginDate").ToString().Trim()), _
.Item("LastLoginDate").ToString().Trim(), DateTime.MinValue)
End With
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your time.
I had also tried the converter in the comment below but I found it included keywords that were not in C#. For example, it listed _dstMemberData.Tables[(int )MEMBER_DA TA_TABLES. MEMBER_PRO FILE_INFO_ DATA].Rows [0].Item[" LastLoginD ate"]...
From what I've found, '.Item' does not exist in the C# context.
I had also tried the converter in the comment below but I found it included keywords that were not in C#. For example, it listed _dstMemberData.Tables[(int
From what I've found, '.Item' does not exist in the C# context.
ASKER
I also added the new IsDate method.
Open in new window