Skip to content

Commit

Permalink
Update Hints attribute to allow using it in properties (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Dec 12, 2022
1 parent 9f5f1bf commit c9fe674
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ namespace System.Runtime.Serialization
/// <summary>
/// Provides hints to the binary serializer on how to improve serialization and decrease the size of the serialialized representation.
/// </summary>
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Class, Inherited = true)]
[AttributeUsage(AttributeTargets.Field
| AttributeTargets.Property
| AttributeTargets.Class, Inherited = true)]
public class SerializationHintsAttribute : Attribute
{
//
// Keep in sync with Microsoft.SPOT.Debugger.SerializationHintsAttribute!!!!
//

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

Expand Down

0 comments on commit c9fe674

Please sign in to comment.