Skip to content

9787a2d4 93d1 2bab 7f08 e4dff406aec4

Axel Kesseler edited this page Oct 3, 2019 · 2 revisions

CapacityFormatter.GetUnit Method

Extracts the unit name from provided format string.

Namespace: Plexdata.Formatters
Assembly: Plexdata.CapacityConverter (in Plexdata.CapacityConverter.dll) Version: 1.0.1

Syntax

C#

private string GetUnit(
	string format
)

Parameters

 

format
Type: System.String
The format string to extract the unit name from.

Return Value

Type: String
The unit name or an empty string.

Remarks

This method extracts the unit name from provided format string by stripping out any digits. This actually has the effect that something like "1m2b" would become "mb".

See Also

Reference

CapacityFormatter Class
Plexdata.Formatters Namespace

Clone this wiki locally