Skip to content

263b7f06 f8c8 5871 5311 dd1f5e2ad2c4

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

CapacityConverter Class

Capacity converter provides functionality to easily convert capacity values into formatted strings.

Inheritance Hierarchy

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

Syntax

C#

public static class CapacityConverter

The CapacityConverter type exposes the following members.

Constructors

 

Name Description
Private methodStatic member CapacityConverter The static class constructor.
  Back to Top

Properties

 

Name Description
Public propertyStatic member Capacities Gets the list of used capacity entities.
Public propertyStatic member Default Gets the default capacity entity.
  Back to Top

Methods

 

Name Description
Public methodStatic member Convert(Decimal) Converts provided value into its string representation.
Public methodStatic member Convert(Decimal, Int32) Converts provided value into its string representation.
Public methodStatic member Convert(Decimal, String) Converts provided value into its string representation.
Public methodStatic member Convert(Decimal, String, Int32) Converts provided value into its string representation.
Public methodStatic member Convert(Decimal, String, Int32, CultureInfo) Converts provided value into its string representation.
Public methodStatic member Convert(Decimal, String, Int32, Boolean, CultureInfo) Converts provided value into its string representation.
Public methodStatic member Convert(Decimal, String, Int32, Boolean, Boolean, CultureInfo) Converts provided value into its string representation.
Public methodStatic member Find(Decimal) Finds a capacity entity by value.
Public methodStatic member Find(String) Finds a capacity entity by unit.
  Back to Top

Remarks

This class provides convenient functionality to easily convert capacity values into formatted strings. For example, this class can convert a number of 123,456,789 bytes into its capacity string representation like 117.738 MiB.

See Also

Reference

Plexdata.Converters Namespace

Clone this wiki locally