21 lines
449 B
C#
21 lines
449 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Saviour_Backup_System
|
|
{
|
|
class tools
|
|
{
|
|
public static string Trim(this string value, int maxLength)
|
|
{
|
|
if (value.Length > maxLength)
|
|
{
|
|
return "..." + value.Substring(value.Length - (maxLength - 3));
|
|
}
|
|
|
|
return value;
|
|
}
|
|
}
|
|
}
|