Class ParameterTypeExtensions
- Namespace
- RvtIO.BuiltIns
- Assembly
- RvtIO.dll
Lookups between RvtIO.BuiltIns.ParameterType, shared-parameter data types and unit types.
public static class ParameterTypeExtensionsInheritance
Inherited Members
Methods
FromSharedDataType(string)
Converts a shared-parameter DATATYPE string (case-insensitive) to a parameter type; unknown text gives RvtIO.BuiltIns.ParameterType.Invalid.
public static ParameterType FromSharedDataType(this string dataType)Parameters
dataTypestring
Returns
GetUnitType(ParameterType)
Gets the unit type of parameter; the default value (zero) when it has none.
public static UnitType GetUnitType(this ParameterType parameter)Parameters
parameterParameterType
Returns
ToSharedDataType(ParameterType)
Converts a parameter type to its shared-parameter DATATYPE string; null when it has none.
public static string? ToSharedDataType(this ParameterType parameter)Parameters
parameterParameterType