mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 19:03:29 +08:00
- 移除多余using语句和空行,统一代码缩进格式 - 优化注释文档中的缩进和对齐格式 - 简化条件语句和方法实现,提升代码可读性 - 重构协程系统相关类的字段和方法定义格式 - 更新架构服务中容器访问方式的实现 - 调整异步操作类的属性和方法组织结构 - [skip ci]
19 lines
515 B
C#
19 lines
515 B
C#
namespace GFramework.Core.Abstractions.bases;
|
|
|
|
/// <summary>
|
|
/// 表示键值对的接口,定义了通用的键值对数据结构契约
|
|
/// </summary>
|
|
/// <typeparam name="TKey">键的类型</typeparam>
|
|
/// <typeparam name="TValue">值的类型</typeparam>
|
|
public interface IKeyValue<out TKey, out TValue>
|
|
{
|
|
/// <summary>
|
|
/// 获取键值对中的键
|
|
/// </summary>
|
|
TKey Key { get; }
|
|
|
|
/// <summary>
|
|
/// 获取键值对中的值
|
|
/// </summary>
|
|
TValue Value { get; }
|
|
} |