语言

ObjCSuper 结构

定义

表示用于超级消息发送的 Objective-C objc_super 结构。

public readonly ref struct ObjCSuper
type ObjCSuper = struct
继承
ObjCSuper

注解

此结构旨在通过指向变体的指针 objc_msgSendSuper 进行堆栈分配和传递。 第二个字段(classHandle)必须是接收方的类(即 ClassHandle),而不是超级类,因为 Objective-C 运行时在内部解析超类。

构造函数

名称 说明
ObjCSuper(NSObject)

ObjCSuper为指定对象创建新对象。

适用于