Skip to content

Text

Namespace Nfty.Core in assembly Nfty.Core.

public static class Text

Small wording helpers, so a count is worded the same on every surface.

Methods

Count(int, string)

public static string Count(int n, string noun);

A count with its noun: 1 recipe, 2 recipes.

Parameters

  • n (int) - The count.
  • noun (string) - The singular noun.

Returns. The phrase, invariant.

Remarks

Regular s plurals only; an irregular noun stays at its call site.