Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
newtonsoft jsonシリアライザーを使用して、オブジェクトをjsonにシリアライズしました。
今、私はそれをデシリアライズしたいと思っています。私のオブジェクトは不変で、2 つのコンストラクターがあり、両方ともパラメーターがあります。属性 JsonConstructorAttribute を使用して 2 番目のものを装飾する必要があります。
それはうまくいきます。
しかし!
属性を使用してコンストラクターを装飾するという考えは好きではありません。それを指定する他の方法はありますか?