1

(If this is a dumb question I apologies for it, but I'm new to C# language). I'm creating a P2P system in C# with Visual Studio 2019 and I need the IPEndPointCollection class, but I don't find it under System.Net, only IPEndPoint appears. I've searched the internet but I wasn't able to find an answer. Does anyone know how to resolve this issue?

Thank you in advance.

6
  • Is this a .NET Core project? IPEndPointCollection is in .NET Framework, but isn't part of Core. Why do you think you need it? Commented Jun 25, 2020 at 18:13
  • I checked and it's a .NET standard 2.0. I wanted to create a class containing the name of the peer and the collection of its endpoints Commented Jun 25, 2020 at 20:12
  • Would a List<IPEndPoint> work? Commented Jun 25, 2020 at 20:26
  • Yes, I think. But I was wondering why in tutorials and even in the microsoft documentation it seems there should be no problem. So I was asking to know if I did something wrong Commented Jun 25, 2020 at 22:00
  • 1
    Thank you @itsme86 for the clarification and for the help. Gonna see if a List will fullfill my needs, otherwise I will change to .NET Framework. Commented Jun 26, 2020 at 15:14

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.