File: src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\CallingConventions.cs
Web Access
Project: src\src\coreclr\System.Private.CoreLib\System.Private.CoreLib.csproj (System.Private.CoreLib)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.Runtime.CompilerServices
{
    public class CallConvCdecl
    {
        public CallConvCdecl() { }
    }
    public class CallConvFastcall
    {
        public CallConvFastcall() { }
    }
    public class CallConvStdcall
    {
        public CallConvStdcall() { }
    }
    /// <summary>
    /// Indicates that a method should using the <see href="https://github.com/apple/swift/blob/main/docs/ABIStabilityManifesto.md#calling-convention">Swift</see>calling convention.
    /// </summary>
    public class CallConvSwift
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CallConvSwift" /> class.
        /// </summary>
        public CallConvSwift() { }
    }
 
    /// <summary>
    /// Indicates that a method should suppress the GC transition as part of the calling convention.
    /// </summary>
    /// <remarks>
    /// The <see cref="InteropServices.SuppressGCTransitionAttribute" /> describes the effects
    /// of suppressing the GC transition on a native call.
    /// </remarks>
    public class CallConvSuppressGCTransition
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CallConvSuppressGCTransition" /> class.
        /// </summary>
        public CallConvSuppressGCTransition() { }
    }
 
    public class CallConvThiscall
    {
        public CallConvThiscall() { }
    }
 
    /// <summary>
    /// Indicates that the calling convention used is the member function variant.
    /// </summary>
    public class CallConvMemberFunction
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CallConvMemberFunction" /> class.
        /// </summary>
        public CallConvMemberFunction() { }
    }
}