Click or drag to resize

Energy Methods

The Energy type exposes the following members.

Methods
  Name Description
Public method CompareTo(Double) Compares this instance to a specified Double and returns an indication of their relative values.
Public method CompareTo(Energy) Compares this instance to a specified Energy and returns an indication of their relative values.
Public method CompareTo(Object) Compares this instance to a specified object and returns an indication of their relative values.
Public method Static member ConvertFrom Converts the value in the specified sourceUnit to a new Energy in joules.
Public method ConvertTo Converts the Energy to the specified targetUnit.
Public method Equals(Double) Returns a value indicating whether this instance is equal to a specified Double value.
Public method Equals(Energy) Returns a value indicating whether this instance is equal to a specified Energy value.
Public method Equals(Object) Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object))
Public method Static member FromBarrelsOfOil Creates a new Energy value from the specified value in equivalent barrels of oil.
Public method Static member FromBTU Creates a new Energy value from the specified value in BTU (International Table).
Public method Static member FromCalories Creates a new Energy value from the specified value in calories (International Table).
Public method Static member FromCelsiusHeatUnits Creates a new Energy value from the specified value in Celsius heat units (International Table).
Public method Static member FromHorsepowerHours Creates a new Energy value from the specified value in horsepower-hours.
Public method Static member FromLitersAtmosphere Creates a new Energy value from the specified value in liters-atmosphere.
Public method Static member FromTonOfCoal Creates a new Energy value from the specified value in equivalent tons of coal.
Public method Static member FromWattHours Creates a new Energy value from the specified value in watt-hours.
Public method GetHashCode Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public method GetType Gets the Type of the current instance.
(Inherited from Object)
Public method GetTypeCode Returns the TypeCode for value type Double.
Public method Static member Parse(String) Converts the string representation of a number to its Energy equivalent.
Public method Static member Parse(String, NumberStyles) Converts the string representation of a number in a specified style to its Energy equivalent.
Public method Static member Parse(String, IFormatProvider) Converts the string representation of a number in a specified culture-specific format to its Energy equivalent.
Public method Static member Parse(String, NumberStyles, IFormatProvider) Converts the string representation of a number in a specified style and culture-specific format to its Energy equivalent.
Public method ToBarrelsOfOil Gets the Energy value in equivalent barrels of oil.
Public method ToBTU Gets the Energy value in BTU (International Table).
Public method ToCalories Gets the Energy value in calories (International Table).
Public method ToCelsiusHeatUnits Gets the Energy value in Celsius heat units (International Table).
Public method ToCoulombs Gets the Charge value in coulombs given the specified volts.
Public method ToHorsepowerHours Gets the Energy value in horsepower-hours.
Public method ToLitersAtmosphere Gets the Energy value in liters-atmosphere.
Public method ToString Converts the numeric value of this instance to its equivalent string representation.
(Overrides ValueTypeToString)
Public method ToString(IFormatProvider) Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
Public method ToString(String) Converts the numeric value of this instance to its equivalent string representation, using the specified format.
Public method ToString(String, IFormatProvider) Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.
Public method ToTonsOfCoal Gets the Energy value in equivalent tons of coal.
Public method ToWattHours Gets the Energy value in watt-hours.
Public method Static member TryParse(String, Energy) Converts the string representation of a number to its Energy equivalent. A return value indicates whether the conversion succeeded or failed.
Public method Static member TryParse(String, NumberStyles, IFormatProvider, Energy) Converts the string representation of a number in a specified style and culture-specific format to its Energy equivalent. A return value indicates whether the conversion succeeded or failed.
Top
Extension Methods
  Name Description
Public Extension Method GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension Method GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also