dot-netEnumName: Retrieves the name of the constant in the specified...

.netEnumNameR Documentation

Retrieves the name of the constant in the specified enumeration that has the specified value.

Description

Retrieves the name of the constant in the specified enumeration that has the specified value.

Usage

.netEnumName(enumType, enumValue)

Arguments

enumType

a .NET object, System.Type or type name, possibly namespace and assembly qualified type name, e.g. 'My.Namespace.MyClass,MyAssemblyName'.

enumValue

The value of a particular enumerated constant in terms of its underlying type. Typically an integer.

Value

A string containing the name of the enumerated constant in enumType whose value is enumValue; or null if no such constant is found.

Examples

ospsuite:::.netEnumName("OSPSuite.Core.Domain.Data.AuxiliaryType", 2L)


Open-Systems-Pharmacology/OSPSuite-R documentation built on Feb. 14, 2025, 4:48 p.m.