mirror of
https://github.com/ldqk/Masuit.Tools.git
synced 2026-10-17 05:11:32 +08:00
bdb28d1520
新增 ColumnFormatAttribute 和 ExportIgnoreAttribute 特性类: - ColumnFormatAttribute 用于定义列的格式化字符串。 - ExportIgnoreAttribute 用于标记属性在导出时被忽略。
9 lines
212 B
C#
9 lines
212 B
C#
using System;
|
|
|
|
namespace Masuit.Tools.Excel;
|
|
|
|
[AttributeUsage(AttributeTargets.Property)]
|
|
public class ColumnFormatAttribute(string formatString) : Attribute
|
|
{
|
|
public string FormatString => formatString;
|
|
} |