Example #1
0
 /// <summary>
 /// FileExtPattern属性の取得
 /// </summary>
 public static string[] GetFileExtPattern(this FileCategories value)
 => value.GetAttribute <FileCategories, FileExtPatternAttribute>()?.FileExtPattern
 ?? Array.Empty <string>();
Example #2
0
 /// <summary>
 /// FileAttrs属性の取得
 /// </summary>
 public static FileAttributes?GetFileAttrs(this FileCategories value)
 => value.GetAttribute <FileCategories, FileAttrsAttribute>()?.FileAttr;