I have problem with cloning List item.
Class Item
{
String Name;
Int Age;
}
Than I have a List<>
List<Item> Items = new List<Items>();
now if i do this action
Item val= Items[i];
Now if I change val's age,it will also change Items[i] age. How to clone item from List,so when changing values in cloned item,values wouldn't change in List? This if for examle,but my class im bigger,it contains more than 20 values.