Your property is of type
List<Table1>
.
You are trying to set it to a value of type
SelectList
.
Those are two completely different types, and there is no implicit conversion between them.
Change your code to set the property to a value of the correct type:
tables.list = new List<Table1>
{
new Table1 { ID = "1", Name = "name1" },
new Table1 { ID = "2", Name = "name2" },
new Table1 { ID = "3", Name = "name3" },
};
If you don't understand why you can't assign a value of one type to a property of a different type, then you need to read some basic C# tutorials.