ng[] args) {
> Console.WriteLine(SocketOptionName.Broadcast);
> }
> }
> }
>
> Does that answer the question?
>
> Martin
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Anthony Tarlano
> Sent: Thur
Title: RE: [IronPython] Access to Enumeration Values
I agree with the automatic conversion and the ability to pass then into int(enum) to get the value out. I think that it makes sense to keep the rest as is, such as print the "Broadcast" when the enum value is such.
Thanks for th
EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Anthony Tarlano
Sent: Thursday, August 04, 2005 9:12 AM
To: Discussion of IronPython
Subject: [IronPython] Access to Enumeration Values
the namespace System.Net.Sockets contains an enumation type named
SocketOptionName for retrieving Socket options.
the namespace System.Net.Sockets contains an enumation type named
SocketOptionName for retrieving Socket options. It's definition is:
public enum SocketOptionName
{
// Fields
AcceptConnection = 2,
AddMembership = 12,
AddSourceMembership = 15,
BlockSource = 0x11,