< Summary

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

https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Observable/Behaviors/Metadata/Attributes/AlsoValidateAttribute.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="AlsoValidateAttribute.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System;
 8
 9namespace MyNet.Observable.Behaviors.Metadata.Attributes;
 10
 11/// <summary>
 12/// Indicates that the specified property must be validated at the same time as this property.
 13/// </summary>
 14[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
 015public sealed class AlsoValidateAttribute(string propertyName) : Attribute
 16{
 17    /// <summary>
 18    /// Gets the name of the property that must be validated together with this property.
 19    /// </summary>
 20    public string PropertyName { get; } = propertyName;
 21}
 22

Methods/Properties

.ctor(System.String)