Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2009-05-06
2
Medium Priority
?
397 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 1500 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

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month12 days, 1 hour left to enroll

916 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