I have list containg float ,int and string values.How to convert all those values into a single string.
List<HandleValues> SaveValues = new List<HandleValues>();
SaveValues.Add(new HandleValues(id,modname,Positionx,Positiony,Positionz,Rotationw,Rotationx,Rotationy,Rotationz));
//How to get all those values inside the SaveValues list as a single string so that I can convert it into JSON
string Alldetails= SaveValues.(???????)
using System.Collections;
using System.Collections.Generic;
[System.Serializable]
public class HandleValues
{
public int Id { set; get; }
public string Modelname { set; get; }
public float Posx { set; get; }
public float Posy { set; get; }
public float Posz { set; get; }
public float Rotw { set; get; }
public float Rotx { set; get; }
public float Roty { set; get; }
public float Rotz { set; get; }
public HandleValues(int id,string modelname,float posx,float posy,float posz,float rotw,float rotx,float roty,float rotz)
{
this.Id = id;
this.Modelname = modelname;
this.Posx = posx;
this.Posy = posy;
this.Posz = posz;
this.Rotw = rotw;
this.Rotx = rotx;
this.Roty = roty;
this.Rotz = rotz;
}
}