Skip to content

Commit f419448

Browse files
committed
Comment on yamlserializable and removed struct from the attribute
1 parent cb56192 commit f419448

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

YamlDotNet/Serialization/YamlSerializable.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323

2424
namespace YamlDotNet.Serialization
2525
{
26-
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false, AllowMultiple = false)]
26+
/// <summary>
27+
/// Put this attribute on classes that you want the static analyzer to detect and use.
28+
/// </summary>
29+
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
2730
public sealed class YamlSerializableAttribute : Attribute
2831
{
2932
}

0 commit comments

Comments
 (0)