mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 15:16:33 -08:00
Add progam logic
This commit is contained in:
9
32_Diamond/csharp/StringBuilderExtensions.cs
Normal file
9
32_Diamond/csharp/StringBuilderExtensions.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using System.Text;
|
||||
|
||||
namespace Diamond;
|
||||
|
||||
internal static class StringBuilderExtensions
|
||||
{
|
||||
internal static StringBuilder PadToLength(this StringBuilder builder, int length) =>
|
||||
builder.Append(' ', length - builder.Length);
|
||||
}
|
||||
Reference in New Issue
Block a user