SwiftSelf Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Attributes
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);
Swift |
Creates a new instance of the SwiftSelf struct with the specified pointer value. |
Value |
Gets the pointer of the self context. |
Продукт | Версии |
---|---|
.NET | 9, 10 |
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: