Passing a list of values using vb.net -
I am trying to figure out the best way to pass a list of values of a function using vb.net . Actually I have to give a string, object, string, which can be a list of 10 or less.
An example would be:
string, object, string string, object, string string, object, string string, object, string string, object, string
I am trying to find the best way to pass this type of data structure. I have used the arrays in the past but I am not sure that it will be the best solution of such things and if there is a better way then I really want to learn something new.
Thank you.
I will create a custom class or structure that holds these values:
< Code> Public Class MyClass Public String as Public MyString1 Objects as Public MyObject String Excerpt category as MyString2
Then you can create your list with the collection of these items / You can populate and pass that collection in the method.
Then make your method signature:
Give me new list as my list (MyClass). > public sub-mebsb (as per my list of lists) (
Comments
Post a Comment