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
파일 보기 프로젝트 열기: pythonnet/pythonnet 1 사용 예제들

공개 메소드들

메소드 설명
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