EndPoint.cs 650 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // System.Net.EndPoint.cs
  3. //
  4. // Author:
  5. // Dick Porter ([email protected])
  6. //
  7. // (C) Ximian, Inc. http://www.ximian.com
  8. //
  9. using System.Net.Sockets;
  10. namespace System.Net {
  11. [Serializable]
  12. public abstract class EndPoint {
  13. // NB: These methods really do nothing but throw
  14. // NotSupportedException
  15. public virtual AddressFamily AddressFamily {
  16. get {
  17. throw new NotSupportedException();
  18. }
  19. }
  20. public virtual EndPoint Create (SocketAddress address)
  21. {
  22. throw new NotSupportedException();
  23. }
  24. public virtual SocketAddress Serialize ()
  25. {
  26. throw new NotSupportedException();
  27. }
  28. protected EndPoint ()
  29. {
  30. }
  31. }
  32. }