AddSafe 메서드가 실제로 스레드로부터 안전합니까? 아니면 제가하고있는 일이 잘못 되었습니까?내 컬렉션 스레드가 안전합니까?
public static MyCollection myCol = new MyCollection();
class MyCollection: ObservableCollection<string>
{
public void AddSafe(string item)
{
lock(this)
{
this.Add(item);
}
}
}
http://stackoverflow.com/questions/23108045/how-to-make-observablecollection-thread-safe이를 확인! 링크에서 – TripleEEE
로버트 프레이저의 답변을 확인하십시오! – mybirthname