1
0
mirror of synced 2024-11-23 20:10:57 +01:00
TaikoSoundEditor/Commons/Emit/EntityPropertyInfo.cs
NotImplementedLife 7de65ea43f updated exports
2023-10-01 22:40:27 +03:00

24 lines
762 B
C#

using System;
using System.Text.Json.Serialization;
namespace TaikoSoundEditor.Commons.Emit
{
internal class EntityPropertyInfo
{
public string Name { get; }
public Type Type { get; }
public string JsonPropertyName { get; }
public bool IsReadOnly { get; }
public object DefaultValue { get; }
public EntityPropertyInfo(string name, Type type, string jsonPropertyName = null, bool isReadOnly = false, object defaultValue = null)
{
Name = name;
Type = type;
JsonPropertyName = jsonPropertyName ?? char.ToLower(Name[0]) + Name.Substring(1);
IsReadOnly = isReadOnly;
DefaultValue = defaultValue;
}
}
}