mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Better translation
This commit is contained in:
parent
bce2bc8b7f
commit
117a38b5f9
21 changed files with 95 additions and 156 deletions
12
MinecraftClient/ExtensionMethods.cs
Normal file
12
MinecraftClient/ExtensionMethods.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using System.Linq;
|
||||
|
||||
namespace MinecraftClient
|
||||
{
|
||||
public static class ExtensionMethods
|
||||
{
|
||||
public static string ToUnderscoreCase(this string str)
|
||||
{
|
||||
return string.Concat(str.Select((x, i) => i > 0 && char.IsUpper(x) ? "_" + x.ToString() : x.ToString())).ToLower();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue