C# Класс IronPython.Runtime.Types.NewTypeInfo

TypeInfo captures the minimal CLI information required by NewTypeMaker for a Python object that inherits from a CLI type.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetTypeInfo ( string typeName, PythonTuple bases ) : NewTypeInfo

"bases" contains a set of PythonTypes. These can include types defined in Python (say cpy1, cpy2), CLI types (say cCLI1, cCLI2), and CLI interfaces (say iCLI1, iCLI2). Here are some examples of how this works: (bases) => baseType, {interfaceTypes} (cpy1) => System.Object, {} (cpy1, cpy2) => System.Object, {} (cpy1, cCLI1, iCLI1, iCLI2) => cCLI1, {iCLI1, iCLI2} [some type that satisfies the line above] => cCLI1, {iCLI1, iCLI2} (cCLI1, cCLI2) => error

NewTypeInfo ( Type baseType, IList interfaceTypes ) : System

Приватные методы

Метод Описание
GetBaseTypeFromUserType ( IronPython.Runtime.Types.PythonType curBasePythonType, IList baseInterfaces, Type curTypeToExtend ) : Type
GetPythonTypes ( string typeName, ICollection bases ) : IEnumerable

Filters out old-classes and throws if any non-types are included, returning a yielding the remaining PythonType objects.

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

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

public Equals ( object obj ) : bool
obj object
Результат bool

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

public GetHashCode ( ) : int
Результат int

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

"bases" contains a set of PythonTypes. These can include types defined in Python (say cpy1, cpy2), CLI types (say cCLI1, cCLI2), and CLI interfaces (say iCLI1, iCLI2). Here are some examples of how this works: (bases) => baseType, {interfaceTypes} (cpy1) => System.Object, {} (cpy1, cpy2) => System.Object, {} (cpy1, cCLI1, iCLI1, iCLI2) => cCLI1, {iCLI1, iCLI2} [some type that satisfies the line above] => cCLI1, {iCLI1, iCLI2} (cCLI1, cCLI2) => error
public static GetTypeInfo ( string typeName, PythonTuple bases ) : NewTypeInfo
typeName string
bases PythonTuple
Результат NewTypeInfo

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

public NewTypeInfo ( Type baseType, IList interfaceTypes ) : System
baseType System.Type
interfaceTypes IList
Результат System