Solved

How to define a Property in VB.NET using the generic SortedList (Of T, V)?

Posted on 2009-05-06
2
367 Views
Last Modified: 2012-08-13
Can an expert tell me how to use the generic SortedList as a Property?  Whenever I try the code below, I get an error.

500 points to the expert who can answer the question!
Public Property Variables() As SortedList(Of String, Variable)()

      Get

        Return (_slVariables)

      End Get

      Set(ByVal svalue As SortedList(Of String, Variable()))

        _slVariables = svalue

      End Set

    End Property

Open in new window

0
Comment
Question by:louisiana_blues
  • 2
2 Comments
 
LVL 15

Accepted Solution

by:
JackOfPH earned 500 total points
ID: 24321675
Try this code:


Public Property Variables() As SortedList(Of String, Variable)

      Get

        Return (_slVariables)

      End Get

      Set(ByVal svalue As SortedList(Of String, Variable)

        _slVariables = svalue

      End Set

End Property

Open in new window

0
 
LVL 15

Expert Comment

by:JackOfPH
ID: 24321795
Do you need further assistance?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Word Template Mail merge with vb.net 4 59
Make a border less form movable 2 22
Create XML 5 46
Get the selected ValueMember of Combobox 5 21
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now