DotNetAnalyzers/IDisposableAnalyzers

False positive IDISP004 on TcpClient

sungam3r opened this issue · 0 comments

TcpClient.GetStream() call shows IDISP004 warning/error. Would it be possible to add exclusion for that API in analyzer knowing that returned stream is disposed by TcpClient itself?

TcpClient sources:
изображение