Aurora.ScriptEngine.AuroraDotNetEngine.APIs.LSL_Api.llDumpList2String C# (CSharp) Method

llDumpList2String() public method

public llDumpList2String ( Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.list src, string seperator ) : Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.LSLString
src Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.list
seperator string
return Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.LSLString
        public LSL_String llDumpList2String(LSL_List src, string seperator)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return "";

            if (src.Length == 0)
            {
                return String.Empty;
            }
#if (!ISWIN)
            string ret = "";
            foreach (object o in src.Data)
                ret += o.ToString() + seperator;
#else
            string ret = src.Data.Aggregate("", (current, o) => current + (o.ToString() + seperator));
#endif

            ret = ret.Substring(0, ret.Length - seperator.Length);
            return ret;
        }
LSL_Api