Garbage Collector Memory Managment
=>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();
}Last updated