Hi, I have install visual studio 2017 community in windows 10 machine. I have create one sample list collection but this types of errors occurs.
Unable to cast object of type 'System.RuntimeType' to type 'Mono.Debugger.Soft.TypeMirror'
My coding:
List employees = new List();
public void EmployeeListPage()
{
employees.Add(new Employee { DisplayName = "Rob Finnerty" });
employees.Add(new Employee { DisplayName = "Bill Wrestler" });
employees.Add(new Employee { DisplayName = "Dr. Geri-Beth Hooper" });
employees.Add(new Employee { DisplayName = "Dr. Keith Joyce-Purdy" });
employees.Add(new Employee { DisplayName = "Sheri Spruce" });
employees.Add(new Employee { DisplayName = "Burt Indybrick" });
}
ListView lists = new ListView();
lists.ItemsSource = employees;
This code list collection can't add the data and show the error is Unable to cast object of type 'System.RuntimeType' to type 'Mono.Debugger.Soft.TypeMirror'