|
-
Oct 15th, 2009, 07:24 PM
#1
Re: Obsolete property
You still haven't actually explained what the line of code that is giving you the messages is trying to do. The error message says:
Please use IPAddress.Equals method to perform comparisons.
Are you performing a comparison? If not the you wouldn't use Equals. Have you read the documentation for the IPAddress.Address property? Why is that not the obvious next step? That documentation says:
This property is obsolete. Use GetAddressBytes.
and kindly provides a link to the documentation for that property. The BitConverter class, which you're already using, can convert those Bytes to an Integer.
-
Oct 15th, 2009, 07:56 PM
#2
Thread Starter
Fanatic Member
Re: Obsolete property
Sorry jmcilhinney, but I give up. I understand that you're trying to help me, but I just can't seem to find an answer. And as long as the code works, I won't give it any more thought. 
PS: The codeline changes the (example) string 192.168.1.34 to integer 570534080
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|