Rohit

Rohit

  • NA
  • 238
  • 32.9k

private ListView TestList = new ListView();

Jul 23 2018 6:50 AM
Hi team
i am able to run below code in c# winform 
private ListView TestList = new ListView(); 
 
but same code i trying copy and build c# console it giving me  below error 
Error CS0246 The type or namespace name 'ListView' could not be found (are you missing a using directive or an assembly reference?) 
 
which namespace and reference need to add 
 
 

Answers (1)