SwiftSelf Struct
Definition
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
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. |