21 Ocak 2017 Cumartesi

NewtonSoft JsonConstructor Annotation

Giriş
Açıklaması şöyle
If your class has more than one constructor, mark the one that has all the required immutable properties with [JsonConstructor]
Şöyle yaparız.
public Game(...) 
{
}

[JsonConstructor]       
public Game(...)
{
}

Hiç yorum yok:

Yorum Gönder