< Summary

Information
Class: Elsa.Common.ForwardedTypeAttribute
Assembly: Elsa.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/Attributes/ForwardedTypeAttribute.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 10
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%
get_NewType()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/Attributes/ForwardedTypeAttribute.cs

#LineLine coverage
 1namespace Elsa.Common;
 2
 3/// <summary>
 4/// Helps to forward types to new types when deserializing JSON containing types that have been renamed and or moved to 
 5/// </summary>
 6/// <param name="type">The new type to forward to.</param>
 07public class ForwardedTypeAttribute(Type type) : Attribute
 8{
 09    public Type NewType { get; set; } = type;
 10}

Methods/Properties

.ctor(System.Type)
get_NewType()