namespace Python.Runtime;
using System;
///
/// Defines conversion from CLR objects into Python objects (e.g. ) (marshalling)
///
public interface IPyObjectEncoder
{
///
/// Checks if encoder can encode CLR objects of specified type
///
bool CanEncode(Type type);
///
/// Attempts to encode CLR object into Python object
///
PyObject? TryEncode(object value);
}