mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
Four cases where the analyzer rule conflicts with intentional design: * EmptyList<T>.IDisposable.Dispose (CA1063) — explicit IDisposable on IEnumerator<T>; making it public would conflict with the rest of the IList<T> / IEnumerator<T> surface. * MetadataFile.SectionHeaders (CA1065) — throw documents that this MetadataFileKind has no PE sections; PE-like derived kinds override. * LongSet.GetHashCode + LongSet itself (CA1065 + CA2231) — explicit guards against using LongSet in hash containers / via equality operators; SetEquals is the supported comparison and IEquatable<LongSet>.Equals is itself [Obsolete]. * AnnotationList.Clone (CA2002) — AnnotationList is a private nested type; the surrounding Annotatable class deliberately locks on the AnnotationList instance to serialize annotation reads/writes, and external code cannot obtain a reference to it. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>pull/3732/head
4 changed files with 14 additions and 0 deletions
Loading…
Reference in new issue