I hate to see the name of the class used as a string parameter like “FileDownloader” in the code, and I would like to use something like this FileDownloader.Name(), where FileDownloader is name of the class.
Only problem is that I can’t find out how to do that without instantiating object or creating a static method…
Is there a way to get a class name in .net without having the object instance and without creating a static method that returns the name of the class?
Sure: