Python.Runtime.PyList.AsList C# (CSharp) Метод

AsList() публичный статический Метод

AsList Method
Converts a Python object to a Python list if possible, raising a PythonException if the conversion is not possible. This is equivalent to the Python expression "list(object)".
public static AsList ( PyObject value ) : PyList
value PyObject
Результат PyList
	public static PyList AsList(PyObject value) {
	    IntPtr op = Runtime.PySequence_List(value.obj);
	    if (op == IntPtr.Zero) {
		throw new PythonException();
	    }
	    return new PyList(op);
	}