List<T> can only have T in it. Thats the entire purpose of generics.List<Any object>List<object>List<object> is actually prefered over ArrayList :dnew List<object>() { "something" }; comboBox1.DataSource = new List<object>() { "something" };Error Code: CS0246 -> Description: The type or namespace name 'List<>' could not be found (are you missing a using foreach(var item in list)
{
if(item is int i)...
if(item is string s)...new List<object>() { "something" }