troubleshooting Question

Learning C# (How to create a class)

Avatar of adamtrask
adamtrask asked on
ASP.NETC#Visual Basic.NET
4 Comments2 Solutions262 ViewsLast Modified:
Hello Experts,

I am taking the plunge into C# after acquiring a reasonable knowledge of VB.Net.

I am trying to declare a strongly typed string List in a new class:

Below is how I wrote it in VB.Net and I need some one to translate into C# the initial few lines:


Thanks
Public Class ListsDB
    Private _myCallsList As New List(Of String)
    Private _myTestList As New List(Of String)
    Private _myVisitsList As New List(Of String)
    Public Property MyCallsList() As List(Of String)
        Get
            Return _myCallsList
        End Get
        Set(ByVal value As List(Of String))
            _myCallsList = value
        End Set
    End Property
    Public Property MyTestList() As List(Of String)
        Get
            Return _myTestList
        End Get
        Set(ByVal value As List(Of String))
            _myTestList = value
        End Set
    End Property
    Public Property myVisitsList() As List(Of String)
        Get
            Return _myVisitsList
        End Get
        Set(ByVal value As List(Of String))
            _myVisitsList = value
        End Set
    End Property

Open in new window

ASKER CERTIFIED SOLUTION
saragani

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros