Class CsvHeaderPatternAttribute
- Namespace
- CSV4Unity
- Assembly
- CSV4Unity.Docs.dll
Enumフィールドへ対応付けるCSVヘッダー名を正規表現で指定します。
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class CsvHeaderPatternAttribute : Attribute
- Inheritance
-
objectAttributeCsvHeaderPatternAttribute
Remarks
正規表現は部分一致ではなく、ヘッダー名全体に対して評価されます。
Constructors
- CsvHeaderPatternAttribute(string)
正規表現パターンを指定して属性を生成します。
- CsvHeaderPatternAttribute(string, RegexOptions)
正規表現パターンとオプションを指定して属性を生成します。
Properties
- Options
正規表現の評価に使用するオプションを取得します。
- Pattern
ヘッダー名全体へ適用する正規表現パターンを取得します。