Skip to content

Commit c9fe674

Browse files
authored
Update Hints attribute to allow using it in properties (#2)
1 parent 9f5f1bf commit c9fe674

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

nanoFramework.System.Runtime.Serialization/SerializationHintsAttribute.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ namespace System.Runtime.Serialization
99
/// <summary>
1010
/// Provides hints to the binary serializer on how to improve serialization and decrease the size of the serialialized representation.
1111
/// </summary>
12-
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Class, Inherited = true)]
12+
[AttributeUsage(AttributeTargets.Field
13+
| AttributeTargets.Property
14+
| AttributeTargets.Class, Inherited = true)]
1315
public class SerializationHintsAttribute : Attribute
1416
{
15-
//
16-
// Keep in sync with Microsoft.SPOT.Debugger.SerializationHintsAttribute!!!!
17-
//
1817

1918
#pragma warning disable S1104 // intended use in .NET nanoFramework for native usage
2019

0 commit comments

Comments
 (0)