< Summary

Information
Class: System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute
Assembly: LivekitRtc
File(s): /home/runner/work/livekit-server-sdk-dotnet/livekit-server-sdk-dotnet/LivekitRtc/Internal/OverloadResolutionPriorityAttribute.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 31
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%

File(s)

/home/runner/work/livekit-server-sdk-dotnet/livekit-server-sdk-dotnet/LivekitRtc/Internal/OverloadResolutionPriorityAttribute.cs

#LineLine coverage
 1// author: https://github.com/pabloFuente
 2
 3namespace System.Runtime.CompilerServices
 4{
 5    /// <summary>
 6    /// Polyfill of the .NET 9 attribute, which netstandard2.1 lacks: the C# 13+ compiler recognizes it
 7    /// by name. A deprecated overload kept for binary compatibility gets a lower priority, so a call that
 8    /// both overloads accept binds to the current one instead of raising the deprecation warning.
 9    /// </summary>
 10    [AttributeUsage(
 11        AttributeTargets.Method | AttributeTargets.Constructor | AttributeTargets.Property,
 12        AllowMultiple = false,
 13        Inherited = false
 14    )]
 15    internal sealed class OverloadResolutionPriorityAttribute : Attribute
 16    {
 17        /// <summary>
 18        /// Initializes the attribute.
 19        /// </summary>
 20        /// <param name="priority">The priority; higher wins, the default is 0.</param>
 021        public OverloadResolutionPriorityAttribute(int priority)
 022        {
 23            Priority = priority;
 024        }
 25
 26        /// <summary>
 27        /// Gets the priority.
 28        /// </summary>
 29        public int Priority { get; }
 30    }
 31}

Methods/Properties

.ctor(System.Int32)