python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
c# is it possible to override enum.ToString()?
I use a enum called AccessMode and I build a function for it:
public static string ToString(this AccessMatrix.AccessMode am)
{
switch (am)
{
case AccessMat...

Титан
Votes: 0
Answers: 1
kotlin lazy toString
Let's say I have a toString method that takes a long time to return a result but its value won't change once it's computed.
The best we have come up with is this (thanks @Tenfour04 for the comment):
c...
Campi
Votes: 0
Answers: 0
PHP 8.1.1 issue with __toString() Method - causing Class not found if instance created before declaration of class itself
I have an issue after upgrade from PHP 7.3 to 8.1.1
There is lot to be done of course, but this is kind of weird.
This example is not working for me with error Fatal error:
Uncaught Error: Class &quo...
Chada
Votes: 0
Answers: 2
removing the null value in a toString method
so im trying to solv this question, I am not allowed to see the rest of the code because it is an old exam question. basically I have to make a toString method to printout firstName,middleName, lastNa...
Eric Karaeen
Votes: 0
Answers: 1