Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update: Review changes
  • Loading branch information
liveans authored and github-actions committed Sep 8, 2022
commit d6329ff138ab2342685166a22ffa9774c7fd8759
18 changes: 16 additions & 2 deletions src/libraries/System.Net.WebProxy/src/System/Net/WebProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.Globalization;
using System.Runtime.Serialization;
using System.Text.RegularExpressions;
using System.Threading;

namespace System.Net
{
Expand Down Expand Up @@ -127,9 +128,9 @@ public bool UseDefaultCredentials

private void UpdateRegexList()
{
Regex[]? regexBypassList = null;
if (_bypassList is ChangeTrackingArrayList bypassList)
{
Regex[]? regexBypassList = null;
if (bypassList.Count > 0)
{
regexBypassList = new Regex[bypassList.Count];
Expand Down Expand Up @@ -223,7 +224,20 @@ public ChangeTrackingArrayList() { }

public ChangeTrackingArrayList(ICollection c) : base(c) { }

public bool IsChanged { get; set; }
private volatile bool _isChanged;

public bool IsChanged
{
get
{
return _isChanged;
}

set
{
_isChanged = value;
}
}

// Override the methods that can add, remove, or change the regexes in the bypass list.
// Methods that only read (like CopyTo, BinarySearch, etc.) and methods that reorder
Expand Down