This commit is contained in:
Zel
2025-02-23 18:47:21 +08:00
parent eaaffeeccb
commit e46a7ca31c
104 changed files with 2630 additions and 2516 deletions

View File

@@ -19,12 +19,7 @@ namespace ZelWiki.Models.DataModels
public T? As<T>(T defaultValue)
{
if (Value == null)
{
return defaultValue;
}
return Converters.ConvertTo<T>(Value);
return Value == null ? defaultValue : Converters.ConvertTo<T>(Value);
}
public string DataType { get; set; } = string.Empty;