Imagine I have a class like so:
public class MyClass {
public string MyString { get;set; }
}
And then I extend this like so:
public class MyExtender : MyClass {
public string MyString2 { get;set; }
}
How can I convert a MyClass into the extended one, I tried:
item = (MyExtender)classitem;
But this didn't work.