Skip to content

SizeText

Namespace Nfty.Core.Publish in assembly Nfty.Core.

public static class SizeText

One wording for a byte count, so every surface that prints a file size prints it alike.

Methods

Of(long)

public static string Of(long bytes);

A byte count for a person: 636 KB, 1.2 MB, 12 bytes.

Parameters

  • bytes (long) - The count.

Returns. The size as text, invariant like every other figure this product prints.