Tag Archives: C#

Solved: The destination thread no longer exists exception – C#

2016-11-08 You will get System.ComponentModel.InvalidAsynchronousStateException (The destination thread no longer exists.) if a UI component gets disposed or the UI thread EXITs while a different thread is in the middle of invoking a change on the same UI component. This … Continue reading

Posted in C#.Net, Microsoft .Net Framework | Tagged , , , , | Leave a comment

C# Reflection Code to Search Objects for Fields Properties and Methods and Get Values

2016-07-06 Code below will search for a given named property, field, or method inside a given object. It will search in below order: Properties Fields Methods It will continue to search until it finds a match that holds or returns (for methods) … Continue reading

Posted in C#.Net | Tagged , , , , , , , , , , , , , | Leave a comment