If you want to return multiple values of different Types from a method, but still want to use strong-typing, then using a Tuple is one way to do that. Example:
private void button1_Click(object sender, EventArgs e)
{
var tt1 = method1("one", "two", 100.32D);
string title = tt1.Item1;
string bookURL = tt1.Item2;
double price = tt1.Item3;
}
private Tuple<string, string, double> method1(string bookTitle, string bookURL, double bookPrice)
{
return new Tuple<string, string, double>(bookTitle, bookURL, bookPrice);
}
Of course, you could use a Class, or, a Struct; if you want to examine
why you might use a Tuple, see Eric Lippert's comments here: [
^].
Disclaimer: I am not familiar with WebForms, and its limitations (if any).