ConvertableUtilities.

ConvertOrThrow<T>(Object) Method

Summary

Tries to convert the `original` to T.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
ConvertableUtilities

Syntax

public static T ConvertOrThrow<T>(Object original)

Remarks

  • If the `original` is already a then it's returned directly.
  • Or if it's an then is used.
  • Otherwise, this method throws an .

Type Parameters

Name Description
T

Parameters

Name Type Description
original Object

Return Value

Type Description
T