Summary
Tries to convert the `original` to T.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- ConvertableUtilities
Syntax
public static T ConvertOrDefault<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 returns the
default(T) .
Type Parameters
Name | Description |
---|---|
T |
Parameters
Name | Type | Description |
---|---|---|
original | Object |
Return Value
Type | Description |
---|---|
T |