using System;
namespace PCL.Core.Utils;
///
/// 用来模拟带一个参数的属性
///
/// 参数值类型
/// 属性值类型
public class ParameterizedProperty
{
public Func GetValue { private get; init; } = null!;
public Action SetValue { private get; init; } = null!;
public TValue this[TParam param]
{
get => GetValue.Invoke(param);
set => SetValue.Invoke(param, value);
}
}