Answer: How to compare 'μ' and 'µ' in C# #it #developmen t #dev
Answer: How to compare 'μ' and 'µ' in C# #it #developmen t #dev
How to compare ‘μ’ and ‘µ’ in C#
I fall into a surprising issue.
I loaded a text file in my application and I have some logic which compares the value having µ.
And I realized that even if the texts are same the compare value is false.
Console.WriteLine("μ".Equals("µ")); // returns false Console.WriteLine("µ".Equals("µ")); // return true
In later line the character µ is copy pasted.
Any idea…
View On WordPress













