✅ Callable Class
How to use Callable Class in C#?
like
like in python __call__ or dart?
14 Replies
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Yeah, without dynamic object.
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
For future reference, though, C# is neither Python nor Dart. It's generally best to use C# as it was intended, not trying to coerce it into how other languages work.
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
i was talk about callable class, this code just sample.
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Why do you even need something like that?
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
I've never seen callable classes in C# in the wild
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
It just seems like a useless overcomplication of something otherwise super simple
If you want multiple operations as an enum
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
If you have no further questions, please use /close to mark the forum thread as answered