Can someone provide me the answers for the following.
1) I have a multithreaded application and many threads write into the same log file. What is the efficient way of writing into the log file without one thread overwriting the values of other thread and without any race condition or deadlock. Also if you can provide me the sample code that would be nice.
2) what is the best way of showing error messages from a thread in winforms application?
3) I have a class with several properties. I want to serialize only few properties and leave few properties without serialization. How can we acheive this C# .Net?