0

I have a question. Firstly, I did a lot of research on this topic but I could not get any information about that I want to do.

Few days ago, I saw a custom method on my friend's IDE. He has a method and he can convert to anything (if can convert returns 1, if not returns 0) on anywhere. For example:

int a;
a.To<String>;
a.To<Bool>;

In that case, I think he defined something for to do that. When he started typing and using the method To<....> Visual Studio shows "String, bool, integer" etc.

As to my question, how can I do this? What is of this logic?

Thank you, regards.

BadSec
  • 1
  • 2

0 Answers0