Breyta

Deila með


SwiftSelf Struct

Definition

Important

This API is not CLS-compliant.

Represents the Swift 'self' context, indicating that the argument is the self context.

public value class SwiftSelf
[System.CLSCompliant(false)]
public readonly struct SwiftSelf
[<System.CLSCompliant(false)>]
type SwiftSelf = struct
Public Structure SwiftSelf
Inheritance
SwiftSelf
Attributes

Remarks

This struct is used to pass the 'self' context to Swift functions in the context of interop with .NET.

Here's an example of how a SwiftSelf context can be declared: [UnmanagedCallConv(CallConvs = [typeof(CallConvSwift)])] [DllImport("SwiftLibrary", EntryPoint = "export")] public static extern void swiftFunction(SwiftSelf self);

Constructors

SwiftSelf(Void*)

Creates a new instance of the SwiftSelf struct with the specified pointer value.

Properties

Value

Gets the pointer of the self context.

Applies to