'object' does not contain a definition for 'position' and no accessible extension method 'position' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?) code example

Example 1: CS1061 C# 'EventArgs' does not contain a definition for 'KeyCode' and no accessible extension method 'KeyCode' accepting a first argument of type 'EventArgs' could be found (are you missing a using directive or an assembly reference?)

(object sender, KeyEventArgs e)

Example 2: 'NewBehaviourScript' does not contain a definition for 'GameObject' and no accessible extension method 'GameObject' accepting a first argument of type 'NewBehaviourScript' could be found (are you missing a using directive or an assembly reference?)

using System.Collections.Generic;  

// The following declaration generates CS0246.  
using myAliasName = List<int>;

// To avoid the error, fully qualify List.  
using myAliasName2 = System.Collections.Generic.List<int>;