Plugin.Architecture.Core/DataContext.cs
(完整代码) 856Busing System.Collections.Generic;
namespace Plugin.Architecture.Core
{
public abstract class DataContext : PluginContext
{
/// <summary>
/// custom your data
/// </summary>
public IDictionary<string, string> Datas { get; set; }
public override string ToString()
{
var msg = string.Empty;
var t = GetType();
var propertyInfos = t.GetProperties();
foreach (var propertyInfo in propertyInfos)
{
if (propertyInfo.GetValue(this, null) != null)
{
msg += propertyInfo.Name + ":" + propertyInfo.GetValue(this, null) + "|";
}
else
msg += propertyInfo.Name + ":" + string.Empty + "|";
}
return msg;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。