mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-09 22:55:42 +00:00
✨ Add string.Reverse
This commit is contained in:
parent
1601084cb4
commit
b424a4b8ec
@ -258,6 +258,16 @@
|
|||||||
return builder.ToString();
|
return builder.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Reverses the current string.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value">The string to reverse.</param>
|
||||||
|
/// <returns>A <see cref="string" /> whose characters are that of <paramref name="value" /> in reverse order.</returns>
|
||||||
|
public static string Reverse(this string value)
|
||||||
|
{
|
||||||
|
return string.Join(string.Empty, Enumerable.Reverse(value));
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Shuffles the characters in the string.
|
/// Shuffles the characters in the string.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user