简体   繁体   中英

Why are attribute classes in Json.Net sealed?

Is there any spesific reason why eg Newtonsoft.Json.JsonIgnoreAttribute is a sealed class? The reason I ask is because I'd like to make wrapper around the Json.Net calls, so that the assembly ref is in one assembly only (makes updating the assembly and testing a bit easier).

因为通常这意味着它们没有任何目的(或服务)被扩展/专门化(就像.NET BCL中存在的许多属性类型一样)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM