Passing a list of values using vb.net -



Passing a list of values using vb.net -

i trying figure out best way pass list of values function using vb.net. need pass string, object, string list of 10 or less.

an illustration be:

string, object, string string, object, string string, object, string string, object, string string, object, string

i trying find best way pass type of info structure. have used arrays in past not sure best solution type of thing plus if there improve way i'd larn new.

thanks.

i create custom class or construction holds these values:

public class myclass public mystring1 string public myobject object public mystring2 string end class

then can create/populate list collection of these objects , pass collection method.

dim mylist new list(of myclass) ' populate list here mylist.add statements

then create method signature such:

public sub mysub(byval list list(of myclass))

vb.net

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -