Watch
2
0
Fork
You've already forked raylib-cs
0

Review ToString usage

This commit is contained in:
Rgebee 2022-01-26 20:30:38 +00:00
commit b48177ff15
2 changed files with 6 additions and 1 deletions

View file

@ -61,7 +61,7 @@ namespace Raylib_cs
public override string ToString() public override string ToString()
{ {
return string.Concat(r.ToString(), " ", g.ToString(), " ", b.ToString(), " ", a.ToString()); return $"{{r:{r} g:{g} b:{b} a:{a}}}";
} }
} }
} }

View file

@ -21,6 +21,11 @@ namespace Raylib_cs
this.width = width; this.width = width;
this.height = height; this.height = height;
} }
public override string ToString()
{
return $"{{x:{x} y:{y} width:{width} height:{height}}}";
}
} }
/// <summary>Bounding box type</summary> /// <summary>Bounding box type</summary>