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? -

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

ajax - PHP/JSON Login script (Twitter style) not setting sessions -