1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
saviour-backup-system/Saviour Backup System/tools.cs

20 lines
429 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(string value, int maxLength)
{
if (value.Length > maxLength)
{
return value.Substring(0, maxLength - 3) + "...";
}
return value;
}
}
}