I encountered in question without an answer in WPF (C#), I would like some help.
I want to check if an object is created in the main(UI) thread, is there a way to do it?
(Object such as a list, collection, etc.)
EDIT
I am trying to reduce the use of Dispatcher.Invoke (and Dispatcher.CheckAccsess), because it slows down the system.
I have an object that when it binding to the UI I need the Invoke, but many times it was created in a different thread and there is no need in Invoke and it can set from the current thread.