[]
        
(Showing Draft Content)

C1.C1Preview.Unit.FromObject

FromObject Method

FromObject(object)

Attempts to convert an object to a unit value. This method throws an exception if the conversion cannot be performed.

Declaration
public static Unit FromObject(object obj)
Parameters
Type Name Description
object obj

An object to convert.

Returns
Type Description
Unit

A unit value representing obj.