📄 validationrulehandler.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
namespace Common.Utility.Validation
{
/// <summary>
/// Delegate providing the signature of all methods that will process validation rules.
/// </summary>
/// <remarks>
/// <para>
/// The method handler should set the Description attribute of the
/// <see cref="ValidationRuleArgs"/> parameter so that a meaningful
/// error is returned.
/// </para><para>
/// If the data is valid, the method must return true. If the data is invalid,
/// the Description should be set the false should be returned.
/// </para>
/// </remarks>
public delegate bool ValidationRuleHandler(object target, ValidationRuleArgs e);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -