I have an problem to make class as value type. This is my example:
class exampleClass
{
    private List<string> temp = new List<string>();
    public exampleClass(List<string> list)
    {
        temp = list;
    }
    public List<string> list { get { return temp; } }
}
... and initialize window:
public MainWindow()
{
    List<string> exampleList = new List<string>();
    exampleList.Add("TEST");
    Klasy.exampleClass test = new Klasy.exampleClass(exampleList);
    exampleList.Clear();
    InitializeComponent();
}
My question is: How to save value of list in exmapleClass when I clear exampleList. What I should change in class to make it independent of the exampleList?
Thanks
 
     
    