DevCase.Runtime.TypeConverters Namespace

 

Classes

EncodingTypeConverter Provides a unified way of converting types of values to a Encoding object.
FileSizeConverter Provides a type converter to converts a numeric value into a string that represents the number expressed as a size value in bytes, kilobytes, megabytes, gigabytes, petabytes or exabytes, depending on the size.

Conversion examples:

Input value -> Result string

793 -> 793 Bytes

1533 -> 1,49 KB

2049 -> 2,00 KB

PercentageMax100TypeConverter Provides a unified way of converting types of values to a percentage value in range of 0% to 100%.
PercentageTypeConverter Provides a unified way of converting types of values to a percentage value.