_Core/Utilities/StatusResults.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace ComLib
{
/// <summary>
/// Action result.
/// </summary>
public interface IStatusResult
{
/// <summary>
/// Gets the message.
/// </summary>
/// <value>The message.</value>
string Message { get; }
/// <summary>
/// Gets the key.
/// </summary>
/// <value>The key.</value>
string Key { get; }
/// <summary>
/// Gets the target. The object for which this status applies to.
/// </summary>
/// <value>The target.</value>
object Target { get; }
}
/// <summary>
/// Interface for action results
/// </summary>
public interface IStatusResults : IEnumerable<StatusResult>
{
/// <summary>
/// Add single status / error message.
/// </summary>
/// <param name="message"></param>
void Add(string message);
/// <summary>
/// Add single action result to represent status/error.
/// </summary>
/// <param name="result"></param>
void Add(StatusResult result);
/// <summary>
/// Add single action result.
/// </summary>
/// <param name="key"></param>
后面还有 260 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
