3
I have the following structure:
struct cores
{
int r, g, b;
public cores(int r, int g, int b)
{
this.r = r;
this.g = g;
this.b = b;
}
}
If I had a new structure printed, it would look like this:
Console.WriteLine(new cores(1, 0, 0));
//Saída Program.cores
But I wish the way out was:
Console.WriteLine(new cores(1, 0, 0));
//Saída R: 1 - G: 0 - B: 0
How can I do that?
I know there are already some similar questions here in the OS, but none specific to the case described, and when I went looking here, it was very difficult to find, besides the content not being in good condition for learning.
Don’t talk like my type. ;-;
– Francisco