Hi there,
I want to create an error class. And it has some static properties. For example : Message, InnerException, Stacktrace, Source. But i want to add some dinamiclly properties. If exception is a FileNotFoundException, i want add FileName property. Or if it s a SqlException, want to add LineNumber property. And i cant inherit that class from Exception because, i return that class from a web service. How can i do that?
Thanx for your helps.