API reference
Method TryRecompose
- Namespace
- DisCatSharp.Common.Serialization
- Assembly
- DisCatSharp.Common.dll
TryRecompose(object, Type, Type, out object?)
Attempts to recompose given object of specified source type, into specified target type. The operation produces the recomposed object.
public bool TryRecompose(object obj, Type tobj, Type trecomposed, out object? recomposed)
Parameters
objobjectObject to recompose from.
tobjTypeType of data to recompose.
trecomposedTypeType to recompose into.
recomposedobjectRecomposition result.
Returns
- bool
Whether the operation was successful.