neuecc / Utf8Json

Definitely Fastest and Zero Allocation JSON Serializer for C#(NET, .NET Core, Unity, Xamarin).
MIT License
2.35k stars 266 forks source link

I Can't Use [DataMember()] Attribute #238

Open Azthenix opened 3 years ago

Azthenix commented 3 years ago

I can't seem to use the [DataMember()] attribute. When I use it it only shows up as.

The type or namespace name 'DataMemberAttribute' could not be found (are you missing a using directive or an assembly reference?)

tomsoftware commented 3 years ago

[DataMember(Name = "yourNameHere")]is set in using System.Runtime.Serialization;