📜  c# 反转字符串 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:58.497000             🧑  作者: Mango

代码示例6
public static string ToReverseString(this string value)
{
  return string.Join("", value.Reverse());
}

public static string SubstringReverse(this string value, int indexFromEnd, int length)
{
  return value.ToReverseString().Substring(indexFromEnd, length).ToReverseString();
}