The Magician's String, what you see is not what you get.
-
static void Main(string[] args)
{
String str1 = "http://toto.com/";
String str2 = "http://toto.com/";
bool eq = str1 == str2;
Console.WriteLine(eq); //print falsestr1 = "http://toto.com/"; str2 = "http://toto.com/"; eq = str1 == str2; Console.WriteLine(eq); //print true
}
See for yourself, but copy the code, do not retype it. :) I lost hair on this one, bug on an actual project for one customer. But it is a nice trick to do to one of your collegue if his computer is unlocked... Also works in configuration files. ;) This is pure evil though.
-
static void Main(string[] args)
{
String str1 = "http://toto.com/";
String str2 = "http://toto.com/";
bool eq = str1 == str2;
Console.WriteLine(eq); //print falsestr1 = "http://toto.com/"; str2 = "http://toto.com/"; eq = str1 == str2; Console.WriteLine(eq); //print true
}
See for yourself, but copy the code, do not retype it. :) I lost hair on this one, bug on an actual project for one customer. But it is a nice trick to do to one of your collegue if his computer is unlocked... Also works in configuration files. ;) This is pure evil though.
No cross posting... ;P
Anything that is unrelated to elephants is irrelephant
Anonymous
-----
The problem with quotes on the internet is that you can never tell if they're genuine
Winston Churchill, 1944
-----
I'd just like a chance to prove that money can't make me happy.
Me, all the time -
static void Main(string[] args)
{
String str1 = "http://toto.com/";
String str2 = "http://toto.com/";
bool eq = str1 == str2;
Console.WriteLine(eq); //print falsestr1 = "http://toto.com/"; str2 = "http://toto.com/"; eq = str1 == str2; Console.WriteLine(eq); //print true
}
See for yourself, but copy the code, do not retype it. :) I lost hair on this one, bug on an actual project for one customer. But it is a nice trick to do to one of your collegue if his computer is unlocked... Also works in configuration files. ;) This is pure evil though.
-
Ah the beauties of c# That's why I use String.Equals or Compare.
Microsoft ... the only place where VARIANT_TRUE != true
Not really, it's a trap![^] :)
Whether I think I can, or think I can't, I am always bloody right!
-
Not really, it's a trap![^] :)
Whether I think I can, or think I can't, I am always bloody right!
-
static void Main(string[] args)
{
String str1 = "http://toto.com/";
String str2 = "http://toto.com/";
bool eq = str1 == str2;
Console.WriteLine(eq); //print falsestr1 = "http://toto.com/"; str2 = "http://toto.com/"; eq = str1 == str2; Console.WriteLine(eq); //print true
}
See for yourself, but copy the code, do not retype it. :) I lost hair on this one, bug on an actual project for one customer. But it is a nice trick to do to one of your collegue if his computer is unlocked... Also works in configuration files. ;) This is pure evil though.
-
No cross posting... ;P
Anything that is unrelated to elephants is irrelephant
Anonymous
-----
The problem with quotes on the internet is that you can never tell if they're genuine
Winston Churchill, 1944
-----
I'd just like a chance to prove that money can't make me happy.
Me, all the timeSorry, I got too excited by my discovery, I think it is the biggest WTF invented since iphone.
-
Ah, a \u200F (right to left mark). Sneaky sneaky. I've also met the "record separator" (invisible ascii character) before, didn't do that much damage but caused some headaches..
would you know how to write it with keyboard ? I have no idea how my customer wrote the character, and he neither. I can only duplicate the problem by copy pasting.
-
would you know how to write it with keyboard ? I have no idea how my customer wrote the character, and he neither. I can only duplicate the problem by copy pasting.
-
static void Main(string[] args)
{
String str1 = "http://toto.com/";
String str2 = "http://toto.com/";
bool eq = str1 == str2;
Console.WriteLine(eq); //print falsestr1 = "http://toto.com/"; str2 = "http://toto.com/"; eq = str1 == str2; Console.WriteLine(eq); //print true
}
See for yourself, but copy the code, do not retype it. :) I lost hair on this one, bug on an actual project for one customer. But it is a nice trick to do to one of your collegue if his computer is unlocked... Also works in configuration files. ;) This is pure evil though.
What, you mean you are not using the font Terminal for your C# code editing? ;-)
-
Ah the beauties of c# That's why I use String.Equals or Compare.
Microsoft ... the only place where VARIANT_TRUE != true
ahah it's not that :) Hint : The magic is language agnostic, it follows you wherever you copy it.
-
What, you mean you are not using the font Terminal for your C# code editing? ;-)
I learned the hard way why the font was useful ahah
-
would you know how to write it with keyboard ? I have no idea how my customer wrote the character, and he neither. I can only duplicate the problem by copy pasting.
IIRC, it's Alt + 288 ..
Don't mind those people who say you're not HOT. At least you know you're COOL. I'm not afraid of falling, I'm afraid of the sudden stop at the end of the fall! - Richard Andrew x64
-
IIRC, it's Alt + 288 ..
Don't mind those people who say you're not HOT. At least you know you're COOL. I'm not afraid of falling, I'm afraid of the sudden stop at the end of the fall! - Richard Andrew x64
if I do in in notepad or whatever, it prints as a space :(