📜  c# string reverse - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:38.978000             🧑  作者: 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();
}