Solved

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

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

785 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