< Summary

Information
Class: MyNet.Primitives.Metadata.SymbolAttribute
Assembly: MyNet.Primitives
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Primitives/Metadata/SymbolAttribute.cs
Tag: 323_28699572109
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 24
Line coverage: 100%
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%11100%

File(s)

https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Primitives/Metadata/SymbolAttribute.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="SymbolAttribute.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System;
 8
 9namespace MyNet.Primitives.Metadata;
 10
 11/// <summary>
 12/// Specifies a symbolic representation for a type member or property.
 13/// Typical examples include SI units ("kg", "cm"), currencies ("€"),
 14/// or technical shorthand not intended for localization.
 15/// </summary>
 16[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Class | AttributeTargets.Struct)]
 317public sealed class SymbolAttribute(string value) : Attribute
 18{
 19    /// <summary>
 20    /// Gets the symbolic representation.
 21    /// </summary>
 22    public string Value { get; } = value;
 23}
 24

Methods/Properties

.ctor(System.String)