using System.Reflection; namespace XFEExtension.NetCore.ProfileExtension; /// /// 配置文件属性信息 /// /// 属性名称 /// 属性信息 public class ProfileEntryInfo(string name, PropertyInfo propertyInfo) { /// /// 属性名称 /// public string Name { get; set; } = name; /// /// 属性值 /// public string? Value { get { return Property.GetValue(null)?.ToString(); } } /// /// 属性信息 /// public PropertyInfo Property { get; init; } = propertyInfo; }