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
Post a Comment