AttributeValueConverter
Namespace: Meshmakers.Octo.Runtime.Contracts
Converts attribute values based their construction kit type.
public static class AttributeValueConverter
Inheritance Object → AttributeValueConverter
Methods
GetDotNetType(AttributeValueTypesDto)
Gets the .NET type for the given
public static Type GetDotNetType(AttributeValueTypesDto attributeValueTypes)
Parameters
attributeValueTypes
AttributeValueTypesDto
The attribute value type
Returns
Exceptions
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