mirror of
https://gitlab.com/mfocko/CodeWars.git
synced 2024-11-25 02:01:56 +01:00
11 lines
249 B
C#
11 lines
249 B
C#
|
using System;
|
||
|
using System.Linq;
|
||
|
|
||
|
public static class JadenCase
|
||
|
{
|
||
|
public static string ToJadenCase(this string phrase)
|
||
|
{
|
||
|
return String.Join(" ", phrase.Split(' ').Select(word => word.First().ToString().ToUpper() + word.Substring(1)));
|
||
|
}
|
||
|
}
|