public string llList2String(IScriptInstance script, object[] list, int index) { if (index < 0) { index = list.Length + index; } if (index >= list.Length || index < 0) { return(String.Empty); } object o = list[index]; return(LSLUtils.ObjectToString(o)); }
public string llList2CSV(IScriptInstance script, object[] list) { StringBuilder output = new StringBuilder(); if (list.Length > 0) { output.Append(LSLUtils.ObjectToString(list[0])); for (int i = 1; i < list.Length; i++) { output.Append(", " + LSLUtils.ObjectToString(list[i])); } } return(output.ToString()); }
public string llDumpList2String(IScriptInstance script, object[] list, string separator) { StringBuilder output = new StringBuilder(); if (list.Length > 0) { output.Append(LSLUtils.ObjectToString(list[0])); for (int i = 1; i < list.Length; i++) { output.Append(separator + LSLUtils.ObjectToString(list[i])); } } return(output.ToString()); }