The type or namespace name ‘List’ could not be found (are you missing a using directive or an assembly reference?).

You just add the below namespace:

using System.Collections.Generic;

About the Author

avatar