C
C#10mo ago
Gamer1234556

✅ Sorting Algorithm with Structs

Hello, for some reason I keep getting the words ICA08.SortingAlgorithm+Employee in the "Generated Value Display" list. Can someone explain why this keeps happening? https://paste.mod.gg/qaftdojxyfvu/0
BlazeBin - qaftdojxyfvu
A tool for sharing your source code with the world!
No description
3 Replies
Angius
Angius10mo ago
You're probably trying to display something that isn't a string The default ToString() method of any object just returns the name of that object
MODiX
MODiX10mo ago
Angius
REPL Result: Success
var hc = new HttpClient();
hc.ToString()
var hc = new HttpClient();
hc.ToString()
Result: string
System.Net.Http.HttpClient
System.Net.Http.HttpClient
Compile: 285.830ms | Execution: 24.163ms | React with ❌ to remove this embed.
Gamer1234556
Gamer1234556OP10mo ago
Ok, I added the ToString to my struct, now I just need t make it so that it displays "provided list" is checked I will try it myself and ask if I get stuck
Want results from more Discord servers?
Add your server