Better write an
Extension Method[
^] to remove the
milliseconds/millisecond
instead fo refactoring the entire library.
using System;
using Humanizer;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
string a = TimeSpan.FromMilliseconds(1).Humanize().RemoveMilliSeconds();
}
}
public static class HumanizerExtension
{
public static string RemoveMilliSeconds(this string s)
{
return s.Replace("millisecond", "").Replace("milliseconds", "");
}
}
}