is it possible to have a public method that returns multiple values and then later call that method only retrieving the value that you want?
public static string Values()
{
string length = DAL.Util.getlength();
string Name = DAL.Util.getName(ddlID.SelectedValue);
return length + Name;
}
now I know if I were to call this method just by saying
string a = Values();
it would return the concatenated string of both length and Name, but is there anyway to call just a specific variable from that method even if it were 10 variables long?
Thanks for any advice and help you can provide.
Sounds like what you actually want is a struct (or a class)
Then you can look at the different elements of the struct as you like.