Skip to content

Commit e12ecc8

Browse files
committed
Allow RequireFieldsInit usage on classes
1 parent d2afd12 commit e12ecc8

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

RequireFieldsInit.Analyzer.dll

512 Bytes
Binary file not shown.

RequireFieldsInit.Core.dll

0 Bytes
Binary file not shown.

Sources~/RequireFieldsInit/RequireFieldsInit.Core/RequireFieldsInitAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
[AttributeUsage(AttributeTargets.Struct)]
3+
[AttributeUsage(AttributeTargets.Struct | AttributeTargets.Class)]
44
public class RequireFieldsInitAttribute : Attribute
55
{
66
public string[] Required { get; set; }

0 commit comments

Comments
 (0)