Car/Assets/Plugin/YogiGameCore/FlexReader/Mapping/TableAttribute.cs

30 lines
800 B
C#
Raw Normal View History

2024-12-31 07:57:41 +08:00
using System;
namespace FlexFramework.Excel
{
/// <summary>
/// Table mapping
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false)]
public sealed class TableAttribute : Attribute
{
/// <summary>
/// One-based row indices to ignore when converting
/// </summary>
public int[] Ignore { get; private set; }
/// <summary>
/// Enable safe converting
/// </summary>
public bool SafeMode { get; set; }
/// <summary>
/// Mapping table
/// </summary>
/// <param name="ignore">One-based row indices to ignore when converting</param>
public TableAttribute(params int[] ignore)
{
Ignore = ignore;
}
}
}