Table of Contents
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.

bool TryRecompose(object obj, Type tobj, Type trecomposed, out object? recomposed)

Parameters

obj object

Object to recompose from.

tobj Type

Type of data to recompose.

trecomposed Type

Type to recompose into.

recomposed object

Recomposition result.

Returns

bool

Whether the operation was successful.