I am not 100% sure but I have a class that looks like a good option to convert to a struct
. However, the bullet point below on good reasons to I am not sure. It says single value
, but I have three properties so I am not sure if that is what it is talking about. Is the class a good option to convert to a struct
? It is not passed by reference and serialized via JSON.NET
to the client as JSON
.
It logically represents a single value, similar to primitive types (int, double, etc.).
Class
public class ScheduleVenueTravelTimeModel
{
[JsonIgnore]
public int VenueLocationId { get; set; }
public int Time { get; set; }
public int VenueId { get; set; }
}