I need some help, hope it is doable.
I would like to pass a Class as a variable in C#.
This is my code so you can see what I am trying to do:
object shClass;
switch ((cbxType.SelectedItem as ComboBoxItem).Value)
{
    case "articles":
            shClass = ArticlesClass;
            break;
    case "topics":
            shClass = TopicsClass;
            break;
}
serializer.Deserialize<shClass>(response);
This code does not work, and this just to give you an idea what I need. Is this possible?
I hope you can help me out. Thank you.
 
    