C
C#2y ago
LazyGuard

✅ Naming functions using strings

In Kotlin, it is possible to name function as strings surrounded by . Thus we can have white spaces etc. Is there a way to do a similar thing using C# ?
6 Replies
Thinker
Thinker2y ago
nope
LazyGuard
LazyGuard2y ago
okay thanks
Callum
Callum2y ago
Oh my god... that's sacrilege... but what if we did an IDictionary of string, delegate and then we created an CallFunction library that takes the function name and the function parameters as the parameters... though can you do it natively... probably not
Jimmacle
Jimmacle2y ago
who decided we needed whitespace in function names in any language gross
Angius
Angius2y ago
I just hope Kotlin implements PHP's variable variables one day when
Accord
Accord2y ago
Closed!
Want results from more Discord servers?
Add your server
More Posts
❔ How should i asociate button click as enterI want to make like if i press enter my app will give u the number but i dont know how to use input ✅ Check a box on a websiteHow can I check a box on a local website using c#? Havent found anything on googleIs it possible to create a program that just goes on a specific url,logs in and then activates smth?I wanted to create smth quick to enable/disable the routers 5ghz option.. it runs on a local/private✅ How should I structure 'exit points' in my program?Hey guys. I'm working solo on a project that involves opening an Excel file, sorting through and tr❔ Does this method cause boxing of value types?I was looking through the list<T> class and noticed that the Contains<T>(T item) method attemps to c❔ Help with realization Division by zero in wpf projectI want to throw out the error when dividing by zero. Since "Compute" gives infinity when divided by Get data from a model and display it as dropdown on client side in RazorHi, how do I retrieve data in a database from a model and show it in as my dropdown values in my raz❔ Help with DI, i have different connection strings but same behavior for query DBHi, i want to instance the same query service but with different configuration and i have no idea ho❔ Help with stream reading and writing and displaying information at a certain timeSo I am currently doing stream writing and reading and I need it when the user types the student ID ✅ Foreign key not workingHi, I tried making a foreign key in my table, to another table which I made but it does not work as