B
Bob Maggio
I have created a function that returns a string containing raw HTML to
be used on a web form (see below):
private string GetReportHTML()
{
string strHTML = "";
// I have some code here that queries a database and
// formats the return DataSet as HTML and inserts
// this HTML into strHTML for return to the calling
// function
return strHTML;
}
This HTML content is a report. As such, there is potential for this
report, and thus the returned string size, to be very large.
My question is this, would there be any performance benefit by
changing this function from returning a string to accepting a "ref
string strHTML", considering this string could be very large? (see
below)
private void GetReportHTML(ref strHTML)
{
}
Thanks in advance.
be used on a web form (see below):
private string GetReportHTML()
{
string strHTML = "";
// I have some code here that queries a database and
// formats the return DataSet as HTML and inserts
// this HTML into strHTML for return to the calling
// function
return strHTML;
}
This HTML content is a report. As such, there is potential for this
report, and thus the returned string size, to be very large.
My question is this, would there be any performance benefit by
changing this function from returning a string to accepting a "ref
string strHTML", considering this string could be very large? (see
below)
private void GetReportHTML(ref strHTML)
{
}
Thanks in advance.