Hello, I'm having trouble with a function returning two values. Each value contains a string, how can I return these values and have each one of them be stored in one independent variable.

How can I do this? This is my code:

vb.net Code:
  1. Public Shared Function SHA256StringHash(ByVal text As String, Optional ByVal salt As Boolean = False) As String
  2.             Try
  3.                 Select Case salt
  4.                     Case True
  5.                         Dim textBytes As Byte() = _encoding.GetBytes(text)
  6.                         Dim myrandom As New Random
  7.                         Dim rng As New RNGCryptoServiceProvider
  8.                         Dim randomSalt As Byte() = New Byte(myrandom.Next(4, 8)) {}
  9.                         rng.GetNonZeroBytes(randomSalt)
  10.                         Dim SaltedText_Byte As Byte() = New Byte((textBytes.Length + randomSalt.Length) - 1) {}
  11.                         SaltedText_Byte = textBytes.Concat(randomSalt).ToArray
  12.                         Dim SaltedHash As Byte() = hash.ComputeHash(SaltedText_Byte)
  13.                         Return Convert.ToBase64String(SaltedHash) _
  14.                         AndAlso Convert.ToBase64String(randomSalt)
  15.                         Return Nothing
  16.                     Case Else
  17.                         Dim textBytes As Byte() = _encoding.GetBytes(text)
  18.                         Dim textHash As Byte() = hash.ComputeHash(textBytes)
  19.                         Return Convert.ToBase64String(textHash)
  20.                 End Select
  21.             Catch ex As Exception
  22.                 Return ex.Message
  23.             End Try
  24.         End Function

I'm trying to return the hashed text with the salt and the generated salt, how can I do this?

Thanks in advance!