title: CS0029: Cannot implicitly convert type 'System.Collections.Generic.List<
body: <p>I'm using this code but doesn't work</p>
  
  <pre><code>List&lt;UrunListesi&gt; DegiskenListesi = new List&lt;UrunListesi&gt;();
  DegiskenUrunListesi = (from UL in DB.UrunListesi
                         where IDListesi.Contains(UL.KategoriID.ToString()) &amp;&amp; UL.Durum == true
                         orderby UL.id descending
                         select UL).ToList();
  </code></pre>
  
  <p><br><br>
  Browser Error</p>
  
  <blockquote>
    <p>"CS0029: Cannot implicitly convert type
    <code>System.Collections.Generic.List&lt;UrunListesi&gt;</code>
    [c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll]' to
    <code>System.Collections.Generic.List&lt;UrunListesi&gt;</code>
    [c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll]'"</p>
  </blockquote>
  
  <p><br><br>
  I tried this line but this didn't work too</p>
  
  <pre><code>IEnumerable&lt;UrunListesi&gt; DegiskenUrunListesi = null;
  DegiskenUrunListesi = (from UL in DB.UrunListesi
                         where IDListesi.Contains(UL.KategoriID.ToString()) &amp;&amp; UL.Durum == true
                         orderby UL.id descending
                         select UL).ToList();
  </code></pre>
  
  <p><br><br>
  dbcontext</p>
  
  <pre><code>public partial class MySiteDBEntities : DbContext
      {
          public MySiteDBEntities()
              : base("name=MySiteDBEntities")
          {
          }
  
          protected override void OnModelCreating(DbModelBuilder modelBuilder)
          {
              throw new UnintentionalCodeFirstException();
          }
  
          public virtual DbSet&lt;AnaBanner&gt; AnaBanner { get; set; }
          public virtual DbSet&lt;BankaListesi&gt; BankaListesi { get; set; }
          public virtual DbSet&lt;KategoriListesi&gt; KategoriListesi { get; set; }
          public virtual DbSet&lt;KrediKartiOdemeleri&gt; KrediKartiOdemeleri { get; set; }
          public virtual DbSet&lt;TaksitOranTablosu&gt; TaksitOranTablosu { get; set; }
          public virtual DbSet&lt;UrunResimListesi&gt; UrunResimListesi { get; set; }
          public virtual DbSet&lt;UrunYorumlari&gt; UrunYorumlari { get; set; }
          public virtual DbSet&lt;MarkaListesi&gt; MarkaListesi { get; set; }
          public virtual DbSet&lt;IlceListesi&gt; IlceListesi { get; set; }
          public virtual DbSet&lt;SehirListesi&gt; SehirListesi { get; set; }
          public virtual DbSet&lt;UlkeListesi&gt; UlkeListesi { get; set; }
          public virtual DbSet&lt;UyeBilgileri&gt; UyeBilgileri { get; set; }
          public virtual DbSet&lt;KullaniciListesi&gt; KullaniciListesi { get; set; }
          public virtual DbSet&lt;SepetListesi&gt; SepetListesi { get; set; }
          public virtual DbSet&lt;BinListesi&gt; BinListesi { get; set; }
          public virtual DbSet&lt;RenkListesi&gt; RenkListesi { get; set; }
          public virtual DbSet&lt;UrunListesi&gt; UrunListesi { get; set; }
      }
  </code></pre>
  
  <p><br><br>
  UrunListesi Class</p>
  
  <pre><code>public partial class UrunListesi
  {
      public int id { get; set; }
      public Nullable&lt;int&gt; MarkaID { get; set; }
      public Nullable&lt;int&gt; KategoriID { get; set; }
      public string UrunAdi { get; set; }
      public string UrunKodu { get; set; }
      public string UrunAciklama { get; set; }
      public string AnaResim { get; set; }
      public Nullable&lt;decimal&gt; Fiyat { get; set; }
      public Nullable&lt;bool&gt; Indirimli { get; set; }
      public Nullable&lt;decimal&gt; IndirimliFiyat { get; set; }
      public Nullable&lt;int&gt; Kdv { get; set; }
      public Nullable&lt;bool&gt; Iskontolu { get; set; }
      public Nullable&lt;int&gt; IskontoOrani { get; set; }
      public Nullable&lt;int&gt; StokAdet { get; set; }
      public Nullable&lt;int&gt; RenkID { get; set; }
      public Nullable&lt;bool&gt; EviminoImalati { get; set; }
      public Nullable&lt;bool&gt; KargoBedava { get; set; }
      public Nullable&lt;decimal&gt; KargoFiyati { get; set; }
      public Nullable&lt;int&gt; KargoSuresi { get; set; }
      public Nullable&lt;bool&gt; FirsatUrunu { get; set; }
      public Nullable&lt;System.DateTime&gt; FirsatBaslangicTarihi { get; set; }
      public Nullable&lt;System.DateTime&gt; FirsatBitisTarihi { get; set; }
      public Nullable&lt;bool&gt; KampanyaliUrun { get; set; }
      public Nullable&lt;System.DateTime&gt; KampanyaBitis { get; set; }
      public Nullable&lt;int&gt; UrunHit { get; set; }
      public Nullable&lt;System.DateTime&gt; KayitTarih { get; set; }
      public Nullable&lt;bool&gt; Durum { get; set; }
      public Nullable&lt;System.Guid&gt; UrunKey { get; set; }
  }
  </code></pre>
  
  <p>need help, Thank you.</p>