Click here to Skip to main content
15,915,319 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am new in vb , Please help me out to define ho to make class in vb.net as i make in c# know i want to make this in vb

What I have tried:

public partial class ReportCommission
   {
       public long ID { get; set; }
       public string ClientNumber { get; set; }
       public string TwilioNumber { get; set; }
       //public string ClientName { get; set; }
       public DateTime sDate { get; set; }
       public string MsgType { get; set; }
       public string Direction { get; set; }
       public string RepliedBy { get; set; }
       //public string CID { get; set; }
       public string MsgBody { get; set; }
       public string ClientInfo { get; set; }
       public bool ViaEmail { get; set; }
       public string FullMsg { get; set; }
   }
Posted
Updated 22-Nov-20 20:48pm

1 solution

For simple C# to VB conversions, you can use any online converters like: Code Converter C# to VB and VB to C# – Telerik[^]

For above code, in VB.NET it gives:
VB
Public Partial Class ReportCommission
    Public Property ID As Long
    Public Property ClientNumber As String
    Public Property TwilioNumber As String
    Public Property sDate As DateTime
    Public Property MsgType As String
    Public Property Direction As String
    Public Property RepliedBy As String
    Public Property MsgBody As String
    Public Property ClientInfo As String
    Public Property ViaEmail As Boolean
    Public Property FullMsg As String
End Class

Once you have basic conversion in place, update/modify with the left changes.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900