vb.net - How can I have a sub that accepts a variable as byref without declaring what type of variable it is? -
how can have sub accepts variable byref without declaring type of variable (it int, string, etc.) still have of other parameters defined?
i want sub this:
private sub example(byref variable, byref reader mysqldatareader, byval columnname string)
you can make generic method:
private sub example(of t)(byref variable t, byref reader mysqldatareader, byval columnname string)
Comments
Post a Comment