C# Класс Python.Runtime.BoundContructor

Implements a Python type that constucts the given Type given a particular ContructorInfo.
Here mostly because I wanted a new __repr__ function for the selected constructor. An earlier implementation hung the __call__ on the ContructorBinding class and returned an Incref()ed self.pyHandle from the __get__ function.
Наследование: ExtensionType
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BoundContructor ( Type type, IntPtr pyTypeHndl, ConstructorBinder ctorBinder, ConstructorInfo ci ) : System
tp_call ( IntPtr op, IntPtr args, IntPtr kw ) : IntPtr

BoundContructor.__call__(PyObject *callable_object, PyObject *args, PyObject *kw)

tp_dealloc ( IntPtr ob ) : void
tp_repr ( IntPtr ob ) : IntPtr

Описание методов

BoundContructor() публичный Метод

public BoundContructor ( Type type, IntPtr pyTypeHndl, ConstructorBinder ctorBinder, ConstructorInfo ci ) : System
type System.Type
pyTypeHndl System.IntPtr
ctorBinder ConstructorBinder
ci System.Reflection.ConstructorInfo
Результат System

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

BoundContructor.__call__(PyObject *callable_object, PyObject *args, PyObject *kw)
public static tp_call ( IntPtr op, IntPtr args, IntPtr kw ) : IntPtr
op System.IntPtr
args System.IntPtr PyObject *args
kw System.IntPtr PyObject *kw
Результат System.IntPtr

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

public static tp_dealloc ( IntPtr ob ) : void
ob System.IntPtr
Результат void

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

public static tp_repr ( IntPtr ob ) : IntPtr
ob System.IntPtr
Результат System.IntPtr