I have a class Record
that works fine:
public class Record
{
protected string table;
protected string idcolumn;
public Record(string _t
As I said in comments
You can cast a Dog to Animal but not Animal to Dog(unless that animal is Dog). More clearer All Dogs are Animal but not all Animals are Dogs
Record record = new Record();
Order order = (Order)record;//wont work since record is some record not an Order
To make it work you've to do something like this
Record record = new Order();
Then you can cast it like this
Order order = (Order)record;//works since record is Order