mirror of
https://github.com/maxartz15/Validator.git
synced 2025-06-27 19:56:06 +02:00
Changed naming and tabs
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
namespace Validator
|
||||
{
|
||||
public static partial class ReportCategories
|
||||
{
|
||||
public const string Art = "Art";
|
||||
public const string Design = "Design";
|
||||
public const string Code = "Code";
|
||||
}
|
||||
public static partial class ReportCategories
|
||||
{
|
||||
public const string Art = "Art";
|
||||
public const string Design = "Design";
|
||||
public const string Code = "Code";
|
||||
}
|
||||
}
|
@ -2,10 +2,10 @@ using System;
|
||||
|
||||
namespace Validator
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
|
||||
public class RequiredAttribute : Attribute
|
||||
{
|
||||
public WarningType WarningType { get; private set; } = WarningType.Error;
|
||||
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
|
||||
public class RequiredAttribute : Attribute
|
||||
{
|
||||
public WarningType WarningType { get; private set; } = WarningType.Error;
|
||||
public string Category { get; private set; } = ReportCategories.Design;
|
||||
|
||||
public RequiredAttribute() { }
|
||||
|
Reference in New Issue
Block a user