3

I am trying to rewrite Java code to C# and I am facing the problem that C# has not got this Java method. Can you please give me the C#'s equivalent of this method or some other way to get the class name.

1 Answers1

3

you can do it like this:

typeof(ClassName).Name
Nir Levy
  • 12,322
  • 3
  • 20
  • 37