C# Class TagLib.IFD.Entries.Rational

Representation of an unsigned rational value
ファイルを表示 Open project: rubenv/tripod Class Usage Examples

Public Methods

Method Description
Rational ( uint numerator, uint denominator ) : System

Creates a new Rational value

Reduce ( ) : Rational

Returns a rational value with reduced nominator and denominator

ToString ( ) : string

Converts the value to a System.String.

ToString ( string format, IFormatProvider provider ) : string

Formatprovider to allow formatting of a value. IFormattable

Method Details

Rational() public method

Creates a new Rational value
public Rational ( uint numerator, uint denominator ) : System
numerator uint /// A with the numerator of the /// rational value ///
denominator uint /// A with the denominator of the /// rational value. It must be not 0. ///
return System

Reduce() public method

Returns a rational value with reduced nominator and denominator
public Reduce ( ) : Rational
return Rational

ToString() public method

Converts the value to a System.String.
public ToString ( ) : string
return string

ToString() public method

Formatprovider to allow formatting of a value. IFormattable
public ToString ( string format, IFormatProvider provider ) : string
format string /// A . ///
provider IFormatProvider /// A . ///
return string