c# - Is all of .NET updated to use Contracts? -
since introduction of contracts .net 4.0, wondering if microsoft propagated of classes in bcl?
if not, why? kind of feature makes sense if it's supported in standard library default, right?
no code contracts have not been added of bcl. many of common classes have added annotation whole of bcl has not.
the primary reason here time. bcl huge , adding correct contracts of bcl massive undertaking. , result, @ time, benefits small subset of .net user base. if contracts grow in popularity i'm sure usage within bcl likewise grow (yes realize not doing 1 makes other less likely)
this problem mitigated though ability users declare custom contract assemblies. allows them post-annotate types missed , point code base clean contracts point of view.
Comments
Post a Comment