ConvertableUtilities Class

Summary

Utility methods for Animancer.IConvertable`1.
Assembly
Animancer.dll
Namespace
Animancer
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["ConvertableUtilities"] class Type type-node

Syntax

public static class ConvertableUtilities

Fields

Name Constant Value Summary
CustomConverters
Custom conversion functions used as a fallback for types that can't implement Animancer.IConvertable`1.
static

Methods

Name Value Summary
ConvertOrDefault<T>(Object) T
Tries to convert the `original` to T.
static
ConvertOrThrow<T>(Object) T
Tries to convert the `original` to T.
static
TryConvert<T>(Object, T) bool
Tries to convert the `original` to T.
static