示例工程版本提升至net462,项目添加了部分空引用检测逻辑。累了,消不完的空引用警告(T.T)

This commit is contained in:
fengjiayi
2024-09-30 22:20:02 +08:00
parent 8ecbdfa7a6
commit e4aa3b6185
45 changed files with 562 additions and 581 deletions

View File

@@ -41,12 +41,12 @@ namespace Serein.NodeFlow.Base
/// <summary>
/// 节点guid
/// </summary>
public string Guid { get; set; }
public string Guid { get; set; } = string.Empty;
/// <summary>
/// 显示名称
/// </summary>
public string DisplayName { get; set; }
public string DisplayName { get; set; } = string.Empty;
/// <summary>
/// 是否为起点控件
@@ -76,7 +76,7 @@ namespace Serein.NodeFlow.Base
/// <summary>
/// 运行时的异常信息(仅在 FlowState 为 Error 时存在对应值)
/// </summary>
public Exception RuningException { get; set; } = null;
public Exception? RuningException { get; set; } = null;
/// <summary>