Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

PathString.Empty is not equal to default(PathString) #600

Closed
weidazhao opened this issue Mar 29, 2016 · 0 comments
Closed

PathString.Empty is not equal to default(PathString) #600

weidazhao opened this issue Mar 29, 2016 · 0 comments
Assignees
Labels
3 - Done bug up-for-grabs We will consider contributions

Comments

@weidazhao
Copy link

PathString.Empty should be semantically equivalent to default(PathString). The expression "PathString.Empty == default(PathString)" is currently evaluated as false, as under the hood the Equals() method compares string.Empty with null, which leads to false.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
3 - Done bug up-for-grabs We will consider contributions
Projects
None yet
Development

No branches or pull requests

3 participants