Table of Contents

Class ParameterTypeExtensions

Namespace
RvtIO.BuiltIns
Assembly
RvtIO.dll

Lookups between RvtIO.BuiltIns.ParameterType, shared-parameter data types and unit types.

public static class ParameterTypeExtensions

Inheritance

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

dataType string

Returns

ParameterType

GetUnitType(ParameterType)

Gets the unit type of parameter; the default value (zero) when it has none.

public static UnitType GetUnitType(this ParameterType parameter)

Parameters

parameter ParameterType

Returns

UnitType

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

parameter ParameterType

Returns

string?