To split a string by another string separator, we can use Split
function of C#.
You can determine type of exception in c# in two ways.
This error normally occurs when you are using Post Build event to move your .PDB & .DLL files from you current project's bin directory to some other project's bin directory. And when you run the project (in which you have copied the DLLs & PDBs), you find that you are no longer able to debug the project (whose DLLs & PDBs) you have copied from post build event.
You can use below method to serialize an object to XML string.