using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.Globalization;
using System.Diagnostics;
public static void Main(string[] args)
IList<object> foo = Foo() as List<object>;
Console.WriteLine(foo[0]);
public static IEnumerable<object> Foo(){
var ret = new List<object>();
ret.Add(new { Bar = 1, FooBar = "value" } );
using (var worldbankAMSentitiesNew = new DbContext())
var q = from fullSpareInventory in worldbankAMSentitiesNew.Spare_Inventory
fullSpareInventory.Is_Spare,
fullSpareInventory.Manufacturer,
public class DbContext : IDisposable{
public IEnumerable<Inventory> Spare_Inventory{get; set;}
public int Is_Spare{get;set;}
public int Manufacturer{get;set; }