title: UdpClient.EnableBroadcast value has no effect
body: <p>I was just playing around with a <code>UdpClient</code> and noticed setting <code>UdpClient.EnableBroadcast</code> to <code>true</code> or <code>false</code> doesn't have any (side)effect, I am able to broadcast with it either way:</p>
  
  <pre><code>using (UdpClient client = new UdpClient())
  {
      byte[] data = Encoding.ASCII.GetBytes("Hello");
      while (true)
      {
          client.Send(data, data.Length, new IPEndPoint(IPAddress.Broadcast, 45678));
          Console.WriteLine("sent");
          Console.ReadKey();
      }
  }
  </code></pre>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/system.net.sockets.udpclient.enablebroadcast.aspx" rel="nofollow">The MSDN page</a> is rather vague on this, but it sounds like it should cause an exception if you broadcast with the property set to <code>false</code>:</p>
  
  <blockquote>
    <p>Gets or sets a Boolean value that specifies whether the UdpClient may
    send or receive broadcast packets.
    ...
    true if the UdpClient allows broadcast packets; otherwise, false. The default is false.</p>
  </blockquote>
  
  <p>Not a critical issue, but it just made me wonder. Is this a bug or is the property just there so you can refer to it later and find out whether you are meant to broadcast with it or not?</p>