1

Is there any spesific reason why e.g. 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).

4

1 回答 1

1

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

于 2011-02-02T10:19:46.760 回答