Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
commit
01771aca40
|
@ -5165,25 +5165,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
/// separated list. There is a space after
|
/// separated list. There is a space after
|
||||||
/// each comma.
|
/// each comma.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
||||||
public LSL_String llList2CSV(LSL_List src)
|
public LSL_String llList2CSV(LSL_List src)
|
||||||
{
|
{
|
||||||
|
|
||||||
string ret = String.Empty;
|
|
||||||
int x = 0;
|
|
||||||
|
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
|
|
||||||
if (src.Data.Length > 0)
|
return string.Join(", ",
|
||||||
|
(new List<object>(src.Data)).ConvertAll<string>(o =>
|
||||||
{
|
{
|
||||||
ret = src.Data[x++].ToString();
|
return o.ToString();
|
||||||
for (; x < src.Data.Length; x++)
|
}).ToArray());
|
||||||
{
|
|
||||||
ret += ", "+src.Data[x].ToString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue