You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yi Zhang edited this page Jul 10, 2018
·
1 revision
Namespace: ConverterClassLibrary
Description: Converts one unit with given value to another unit.
Parameters
Description
current<string>
current measuring unit
value<decimal>
value in current measuring unit
target<string>
target measuring unit of conversion
Returns
Description
decimal
value in target measuring unit after conversion
Examples:
//needs concrete implementation in sub-classesConsole.WriteLine(converter.Convert("Hours",8,"Minutes"));//480Console.WriteLine(converter.Convert("Gradians",5,"Radians"));//0.0785