Table of Contents

Format Method

Definition

Namespace
Codebelt.Unitify
Assemblies
Codebelt.Unitify.dll
Source
src/Codebelt.Unitify/UnitFormatter.cs

Format(string, object, IFormatProvider)

Converts the value of a specified arg to an equivalent string representation using specified format and culture-specific format formatProvider.

public string Format(string format, object arg, IFormatProvider formatProvider)

Parameters

format string

A format string containing formatting specifications.

arg object

An object that implements the IUnit interface.

formatProvider IFormatProvider

An object that supplies format information about arg.

Returns

string

The string representation of the value of arg, formatted as specified by format and formatProvider.