Search code examples
c#visual-studiohumanizer

How do I truncate strings with Humanizer without any suffix added?


Is there any way to use Humanizer to get a result similar to this one? I don't want anything added (like ...) to the right of my string.


Solution

  • You just need to use an empty truncation string:

    "Long text to truncate".Truncate(10, "");