增加扫描模式配置参数功能
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user