📋
DATA ACCESS
  • DATA ACCESS
  • Object Relation Mapping
  • Entity Framework
  • Lazy Loading vs Eager Loading
  • IQuareble and IEnumareble
  • Garbage Collector Memory Managment
  • Stack ve Heap Çalışma Mantığı Nedir?
Powered by GitBook
On this page

Was this helpful?

Garbage Collector Memory Managment

Garbage Collector; microsoft teknolojisidir. Uygulamada kullanılan nesneleri görevlerini icra ettikten sonra RAM ın heap alanından silinmesidir. Garbege Collector un ne zaman tetiklendiğine dair somut bir bilgi microsft tarafından açıklanmamıştır. Garbage Collectorun manuel kullanımı Using ile gerçekleştirilebilir. Garbage Collectorun tam olarak anlışması için RAM'in heap ve stack alanlarının çalışma mantığının bilinmesi gerekmektedir.

=>normal kullanım
SoundPlay soundPlay=new SoundPlay(Environment.CurrentDirectory+@"sound.path"))
soundPlay.Play();

=> GarbageCollector Kullanımı.
using (SoundPlay soundPlay = new SoundPlay(Environment.CurrentDirectory+@"sound.path"))
{
    soundPlayer.Play();
}

PreviousIQuareble and IEnumarebleNextStack ve Heap Çalışma Mantığı Nedir?

Last updated 4 years ago

Was this helpful?