增加扫描模式配置参数功能

This commit is contained in:
TianSong
2026-04-22 15:16:43 +08:00
parent faf58b2768
commit 14b027b44f
12 changed files with 920 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
using System;
namespace XP.Scan.Attributes
{
/// <summary>
/// 标记 INI Key 名称(可选,默认使用属性名)| Marks the INI key name (optional, defaults to property name)
/// </summary>
[AttributeUsage(AttributeTargets.Property)]
public class IniKeyAttribute : Attribute
{
public string KeyName { get; }
public IniKeyAttribute(string keyName)
{
KeyName = keyName;
}
}
}
+18
View File
@@ -0,0 +1,18 @@
using System;
namespace XP.Scan.Attributes
{
/// <summary>
/// 标记 INI Section 名称 | Marks the INI section name
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
public class IniSectionAttribute : Attribute
{
public string SectionName { get; }
public IniSectionAttribute(string sectionName)
{
SectionName = sectionName;
}
}
}