refactoring using List.ConvertAll<string>

integration
SignpostMarv 2012-08-24 13:52:30 +01:00 committed by Melanie
parent 632908db9e
commit d188272462
1 changed files with 5 additions and 6 deletions

View File

@ -5170,17 +5170,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
string ret = String.Empty;
int x = 0;
m_host.AddScriptLPS(1);
if (src.Data.Length > 0)
{
ret = src.Data[x++].ToString();
for (; x < src.Data.Length; x++)
{
ret += ", "+src.Data[x].ToString();
}
ret = string.Join(", ",
(new List<object>(src.Data)).ConvertAll<string>(o =>
{
return o.ToString();
}).ToArray());
}
return ret;