我现在从这个类返回字符串主题,如果我想从这个类返回两个字符串,我该怎么做?
字符串主题;
public string getdata(string EmailFrom,string EmailTo, string EmailComment )
{
{
scom.CommandType = CommandType.StoredProcedure;
try
{
SqlDataReader rdr = scom.ExecuteReader();
if (rdr.HasRows)
{
while (rdr.Read())
{
Subject = rdr["EmailSubject"].ToString();
}
}
return Subject;