Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6838411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:35:37+00:00 2026-05-26T23:35:37+00:00

OK, this is a minor issue… but still irritating nonetheless. In MSVS 2008 .NET

  • 0

OK, this is a minor issue… but still irritating nonetheless.

In MSVS 2008 .NET 3.5 I IPAdress.Address was a long and I simply used

if(subnet == subnetmask.Address & addr.Address) { ... }

And then now i just installed MSVS 2010, still using .NET 3.5 but somehow it tells me the IPAddress.Address is obsolete.

I can still wrap a BitConvertor in BitConverter.ToInt64(subnet.GetAddressBytes(), 0) but it feels like i am going backwards. Is there a more elegant way or a built-in function to check for subnet?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:35:38+00:00Added an answer on May 26, 2026 at 11:35 pm

    The reason for IPAddress.Address to be marked as obsolete is:

    This property has been deprecated. It is address family dependent.
    Please use IPAddress.Equals method to perform comparisons.
    http://go.microsoft.com/fwlink/?linkid=14202

    With IPv6 coming, depending on specific features of IPv4 should be regarded as obsolete. Your workaround has the same problem – dependency on IPv4. I think that you have two options:

    • Keep your application IPv4-only and supress the obsolete warning.
    • Find out how to make the functionality work in both IPv6 and IPv4.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Forgive me if this is a duplicate, but it's a minor issue for me
I know this is a minor issue, but why, if you use scaffolding in
This is a pretty minor issue but it's bugging me - I am trying
This is a minor issue, but one I find myself running into: When I
This issue is minor but is bugging me, why do webKit browsers render the
This is a minor style question, but every bit of readability you add to
I'm running into a minor issue with some ASP.Net code I'm working on. For
I'm experiencing a minor issue with fonts in my stylesheet. This is my CSS:
Currently I'm using this minor bit of javascript to remove a small list of
This is a minor bug (one I'm willing to live with in the interest

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.