View Single Post
Old 01-21-2006, 09:57 AM  
Validus
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Calgary, Canada
Posts: 4,012
Quote:
Originally Posted by psili
K then.

Done with helping this fucked up thread.

I reply with an "ASP.NET C#" answer, and you say you're working in "VB". I reply with a "VB" solution and you say you're working in "C#".

Do you know what the fuck you're doing, or am I just getting grumpy because I don't understand the question?

btw, here's the C# example:

String myString = "abc";
bool test1 = String.Compare(myString.Substring(2, 1), "c") hahahaha 0; // This is true.
myString.Substring(3, 1); // This throws ArgumentOutOfRangeException.
bool test2 = String.Compare(myString.Substring(3, 0), String.Empty) hahahaha 0; // This is true.


Thanks for your help!
Validus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote