[Mono-dev] UdpClient Client Property bug

Matt Durgavich mattdurgavich at gmail.com
Wed Aug 23 17:10:01 EDT 2006


Hi all,  I've been doing some socket development, and was surprised to see
the following not compile.

  using System.Net.Sockets;

  public class TestClass {
    public static void Main() {
        UdpClient cli= new UdpClient();
        Socket sock= cli.Client; <----- compiler error
     }
  }


 UdpClient's property Client is marked as protected, whereas I think it
should be public according to MSDN. Advise?
 Cheers,

    - Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060823/cb6eaba6/attachment.html 


More information about the Mono-devel-list mailing list