Skip to content

Use HttpValueCollection as base class for custom collections #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 12, 2022

Conversation

twsouthwick
Copy link
Member

This enables .ToString() to function as similarly to .NET Framework as
possible. That's the only observable difference by adding this as the
base class.

This enables .ToString() to function as similarly to .NET Framework as
possible. That's the only observable difference by adding this as the
base class.
@@ -87,7 +87,7 @@ internal void FillFromString(string s, bool urlencoded = false, Encoding? encodi
}
}

public override string ToString() => ToString(false);
public override string ToString() => ToString(true);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why this was false - on framework, this is true, so changing it back

@@ -100,17 +100,17 @@ private string ToString(bool urlencoded)

var s = new StringBuilder();

for (var i = 0; i < count; i++)
foreach (string k in this)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change is because we can't access by int, but rather by string

@twsouthwick
Copy link
Member Author

@Tratcher the build is failing with "Failed to request agent. Exception Image Build.Server.Amd64.VS2017.Open doesn't exist in pool NetCore-Public". Any ideas?

@Tratcher
Copy link
Member

No, that's a question for the first-responders channel.

@twsouthwick twsouthwick merged commit efd4e0c into main Nov 12, 2022
@twsouthwick twsouthwick deleted the tasou/use-http-value-collection branch November 12, 2022 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants