Gemstone Common Library
Show/Hide TOC

# LengthToString(String, IFormatProvider) Method

Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.

## Definition

Namespace: Gemstone.Units
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.159 -- Release Build+a612c25bc0e1c87e5766544ec4650d2ebcfddcf4
C#
View Source Request Example

    public string ToString(
    	string format,
    	IFormatProvider provider
    )

VB
View Source Request Example

    Public Function ToString (
    	format As String,
    	provider As IFormatProvider
    ) As String

C++
View Source Request Example

    public:
    virtual String^ ToString(
    	String^ format,
    	IFormatProvider^ provider
    ) sealed

JavaScript
View Source Request Example

    function ToString(format, provider);

#### Parameters

format String
  A format specification.
provider IFormatProvider
  A IFormatProvider that supplies culture-specific formatting information.

#### Return Value

String
The string representation of the value of this instance as specified by format and provider.

#### Implements

IFormattableToString(String, IFormatProvider)

## See Also

#### Reference

Length Structure
ToString Overload
Gemstone.Units Namespace