ASP.NET/C# 3.0
I have a method which has the following signature:
public static void SendEmail(string sFrom, string sSubject, string sBody, params string[] sAddresses)
I need to loop through a dataset checking the value of column2. If the value of column2 is True, the string value from column1 should be added to the sAddresses string[].
The only way I know of is to resize the string[] +1 with every iteration. This doesn't sound very efficient. Shirley there's a better way.
Thanks! Kevin