Skip to main content

AttributeValueConverter

Namespace: Meshmakers.Octo.Runtime.Contracts

Converts attribute values based their construction kit type.

public static class AttributeValueConverter

Inheritance ObjectAttributeValueConverter

Methods

GetDotNetType(AttributeValueTypesDto)

Gets the .NET type for the given

public static Type GetDotNetType(AttributeValueTypesDto attributeValueTypes)

Parameters

attributeValueTypes AttributeValueTypesDto
The attribute value type

Returns

Type

Exceptions

NotSupportedException

ConvertAttributeValue(AttributeValueTypesDto, Object)

Converts the given value to the given

public static object ConvertAttributeValue(AttributeValueTypesDto attributeValueTypes, object value)

Parameters

attributeValueTypes AttributeValueTypesDto
The attribute value type

value Object
The value to convert

Returns

Object
Converted value