Solved

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

Posted on 2009-05-06
2
373 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

856 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