roslynator icon indicating copy to clipboard operation
roslynator copied to clipboard

RCS1097 False Negative 4

Open nnpcYvIVl opened this issue 6 years ago • 0 comments
trafficstars

RCS1097 isn't flagged on address.ToString(). Is this a false negative?

using System.Net;
using System.Text;

namespace RCS1097_False_Negative
{
    static class Class
    {
        static void M(IPAddress[] ipaddressarray)
        {
            StringBuilder addressList = new StringBuilder();
            foreach (IPAddress address in ipaddressarray)
            {
                addressList.Append(address.ToString());
            }
        }
    }
}

nnpcYvIVl avatar Mar 11 '19 22:03 nnpcYvIVl