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

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

代码示例1
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();
}