validationrulehandler.cs
来自「改程序能够查询课程表」· CS 代码 · 共 22 行
CS
22 行
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 + =
减小字号Ctrl + -
显示快捷键?