使用base[get;]

This commit is contained in:
milimoe 2024-03-18 21:21:35 +08:00
parent 8570b72e2b
commit 718698ea19
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E

View File

@ -31,9 +31,9 @@ namespace Milimoe.FunGame.Core.Api.Utility
/// </summary> /// </summary>
/// <param name="key"></param> /// <param name="key"></param>
/// <returns></returns> /// <returns></returns>
public new object? this[string key] public new object this[string key]
{ {
get => GetValue(key); get => base[key];
set set
{ {
if (value != null) Add(key, value); if (value != null) Add(key, value);