Re: [IronPython] Access to Enumeration Values

2005-08-08 Thread Anthony Tarlano
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

RE: [IronPython] Access to Enumeration Values

2005-08-04 Thread Martin Maly
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

RE: [IronPython] Access to Enumeration Values

2005-08-04 Thread Martin Maly
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.

[IronPython] Access to Enumeration Values

2005-08-04 Thread Anthony Tarlano
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,