X Tutup
namespace Python.Runtime; using System; /// /// Defines conversion to CLR types (unmarshalling) /// public interface IPyObjectDecoder { /// /// Checks if this decoder can decode from to /// bool CanDecode(PyType objectType, Type targetType); /// /// Attempts do decode into a variable of specified type /// /// CLR type to decode into /// Object to decode /// The variable, that will receive decoding result /// bool TryDecode(PyObject pyObj, out T? value); }
X Tutup