Review ToString usage
This commit is contained in:
parent
accfbadf9a
commit
b48177ff15
2 changed files with 6 additions and 1 deletions
|
|
@ -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}}}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue