2
在Visual Basic 2010中,我想要一個接受兩種可能類型的函數。接受任一種類型
因此,舉例來說,這樣的事情:
Public Function test(ByVal value As Int32 Or Int64) As String
我知道我可以只使用這樣的:
Public Function test(ByVal value) As String
它將接受任何一種類型。但我只是想知道這是否可能。