If you want to set BodyParameters
using only a single string[]
, you can do this:
string[] value = ...;
myEmailTemplate.BodyParameters = new [] { value };
There is no implicit conversion from T
to IList<T>
, where T
is string[]
in your case.
The above code will work because new [] { ... }
will infer the type string[][]
, which implements IList<string[]>
.