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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -