Skip to content

3122d09f b9df 51a9 ee56 3c7cde30dc15

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

CapacityConverter.Convert Method (Decimal, String)

Converts provided value into its string representation.

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

Syntax

C#

public static string Convert(
	decimal value,
	string unit
)

Parameters

 

value
Type: System.Decimal
The value to be converted.
unit
Type: System.String
The unit to get a capacity entity for.

Return Value

Type: String
The string representation of converted value.

Remarks

This method converts provided value into its string representation by finding the best fitting capacity entity and using it to format provided value afterwards. The result includes two decimal digits by default.

See Also

Reference

CapacityConverter Class
Convert Overload
Plexdata.Converters Namespace
CapacityConverter.Convert(Decimal, String, Int32, Boolean, Boolean, CultureInfo)

Clone this wiki locally