📜  c# 字符串右扩展 - C# 代码示例

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

代码示例1
public static partial class Extensions
{
    /// 
    ///     A string extension method that return the right part of the string.
    /// 
    /// The @this to act on.
    /// The length.
    /// The right part.
    public static string Right(this string @this, int length)
    {
        return @this.Substring(@this.Length - length);
    }
}