Thought for the Dazed

I've had to give up that Distance Learning course as I was having trouble seeing the teacher.

Flickr
www.flickr.com
RobMiles' items Go to RobMiles' photostream
Twitter
C# Yellow Book

Search entire site
« Best Joke Ever | Main | Windows Phone Jump Start Still Jumping »
Saturday
Aug212010

The Evil of Block Copy: Volume 99

Tomatoes

Can you tell what is wrong with this code?

if (DrawPosition.Contains(
        (int)location.Position.X,
        (int)location.Position.X) )
{

I can, but it took me a bit of head scratching….

Reader Comments (3)

Can you change X to apple Y to Pear, it might make the cleaner....
August 24, 2010 | Unregistered CommenterJonAlb
Using the location.Position.X twice ?

-= Maarten =-
August 24, 2010 | Unregistered CommenterMaarten van Stam
It keeps amazing me how those kinda things can take "ages" to fix when you wrote the code, but can be an instant solve when a 2nd person is looking at it.
August 24, 2010 | Unregistered CommenterDennis

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.