refactoring using List.ConvertAll<string>

0.7.4-extended
SignpostMarv 2012-08-24 13:52:30 +01:00 committed by Justin Clark-Casey (justincc)
parent 174addc426
commit 2602d4f16e
1 changed files with 5 additions and 6 deletions

View File

@ -5132,17 +5132,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 = string.Join(", ",
(new List<object>(src.Data)).ConvertAll<string>(o =>
{
ret += ", "+src.Data[x].ToString();
}
return o.ToString();
}).ToArray());
}
return ret;