I have this class I'm using to create a list of values
public class map
{
    private static List<map> mapValues = new List<map>();
    public static IEnumerable<map> AllInstances
    {
        get { return mapValues; }
    }
    public int Row { get; set; }
    public int Column { get; set; }
    public Object theobject { get; set; }
    private map()   // Private ctor ensures only a member
    {               // function can create a new map
    }
    public static map Create()
    {
        var mv = new map();
        mapValues.Add(mv);
        return mv;
    }
    public static void Delete(map itemToRemove)
    {
        mapValues.Remove(itemToRemove);
    }
}
I have based this class from this comment
But when I come to the part of var Foundit = MyData.AllInstances.FirstOrDefault(md => md.Device == "blah");
Myclass does not have this FirstOrDefault. 
The idea with this list is to have a grid/map-like system for placing objects in a WPF canvas.
What am I missing to get this working?
 
     
     
    