[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/pythonnet/pythonnet/v3.2.0/src/runtime/Codecs/IPyObjectDecoder.cs [Back]  [Original]

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);
}

Web Proxy Viewer  |  New URL  |  Original Page