The type or namespace name 'IEnumerator' could not be found (are you missing a using directive or an assembly reference?)

Code Example - The type or namespace name 'IEnumerator' could not be found (are you missing a using directive or an assembly reference?)

                
                        using System.Collections;
                    
                
 

The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

                        
                                using System.Collections.Generic;
                            
                        
 

The type or namespace name 'Target' could not be found (are you missing a using directive or an assembly reference?)

                        
                                The type or namespace name 'Target' could not be found (are you missing a using directive or an assembly reference?)