Repository: dotnet/runtime
File: src/libraries/System.Net.WebProxy/src/System/Net/WebProxy.cs (C#)

Code before:
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Buffers;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Runtime.Serialization;
using System.Text.RegularExpressions;
using System.Threading;

namespace System.Net
{
    /// <summary>
    /// Contains HTTP proxy settings for the <see cref="T:System.Net.Http.HttpClient" /> class.
    /// </summary>
    /// <remarks>
    /// <para>
    /// The <see cref="WebProxy"/> class contains the proxy settings that <see cref="T:System.Net.Http.HttpClient"/> instances use to determine whether a Web proxy is used to send requests.
    /// Global Web proxy settings can be specified in machine and application configuration files, and applications can use instances of the <see cref="WebProxy"/> class to customize Web proxy use.
    /// The <see cref="WebProxy"/> class is the base implementation of the <see cref="IWebProxy"/> interface.
    /// </para>
    /// <para>
    /// To obtain instances of the Web proxy class, you can use any of the following methods:
    /// </para>
    /// <list type="bullet">
    /// <item>The <see cref="WebProxy()"/> constructor.</item>
    /// <item>The <see cref="GetDefaultProxy"/> method.</item>
    /// </list>
    /// <para>
    /// These methods each supply a <see cref="WebProxy"/> instance that you can further customize; the difference between them is how the instance is initialized before it is returned to your application.
    /// The <see cref="WebProxy()"/> constructor returns an instance of the <see cref="WebProxy"/> class with the <see cref="Address"/> property set to <see langword="null"/>.
    /// When a request uses a <see cref="WebProxy"/> instance in this state, no proxy is used to send the request.
    /// </para>
    /// <para>
    /// The <see cref="WebProxy"/> class supports automatic detection and execution of proxy configuration scripts. This feature is also known as Web Proxy Auto-Discovery (WPAD).
    /// When using automatic proxy configuration, a configuration script, typically named Wpad.dat, must be located, downloaded, compiled, and run.
    /// If these operations are successful, the script returns the proxies that can be used for a request.
    /// </para>
    /// </remarks>
    public partial class WebProxy : IWebProxy, ISerializable
    {
        private ChangeTrackingArrayList? _bypassList;
        private Regex[]? _regexBypassList;


Review comment (suggestion):
@copilot Replace this remarks section with only
`The <see cref="WebProxy"/> class contains the proxy settings that <see cref="T:System.Net.Http.HttpClient"/> instances use to determine whether a Web proxy is used to send requests.`
and
`The <see cref="WebProxy"/> class is the base implementation of the <see cref="IWebProxy"/> interface.`
Delete the rest

Code after:
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Buffers;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Runtime.Serialization;
using System.Text.RegularExpressions;
using System.Threading;

namespace System.Net
{
    /// <summary>
    /// Contains HTTP proxy settings for the <see cref="T:System.Net.Http.HttpClient" /> class.
    /// </summary>
    /// <remarks>
    /// The <see cref="WebProxy"/> class contains the proxy settings that <see cref="T:System.Net.Http.HttpClient"/> instances use to determine whether a Web proxy is used to send requests.
    /// The <see cref="WebProxy"/> class is the base implementation of the <see cref="IWebProxy"/> interface.
    /// </remarks>
    public partial class WebProxy : IWebProxy, ISerializable
    {
        private ChangeTrackingArrayList? _bypassList;
        private Regex[]? _regexBypassList;

        /// <summary>
        /// Initializes an empty instance of the <see cref="WebProxy" /> class.
        /// </summary>
        /// <remarks>
        /// <para>
        /// The parameterless constructor initializes an empty instance of the <see cref="WebProxy"/> class with the <see cref="Address"/> property set to <see langword="null"/>.
        /// </para>
        /// <para>
        /// When the <see cref="Address"/> property is <see langword="null"/>, the <see cref="IsBypassed"/> method returns <see langword="true"/> and the <see cref="GetProxy"/> method returns the destination address.
        /// </para>
        /// </remarks>
        public WebProxy() : this((Uri?)null, false, null, null) { }

        /// <summary>
        /// Initializes a new instance of the <see cref="WebProxy" /> class from the specified <see cref="Uri" /> instance.
        /// </summary>
        /// <param name="Address">The address of the proxy server.</param>
        public WebProxy(Uri? Address) : this(Address, false, null, null) { }

        /// <summary>