all groups > vj# > april 2004 >
You're in the

vj#

group:

Equivalent of enum in J#


Equivalent of enum in J# Anonymous
4/22/2004 11:36:02 PM
vj#:
What is the equivalent of enum in J#

Re: Equivalent of enum in J# Vladimir Scherbina
4/23/2004 2:57:55 PM
i found in msdn

You can consume .NET Framework enumerations from Visual J# .NET
applications but there is no

support to author (define) enumerations. For eg., the following

piece of code will not compile.

class CustomEnum extends System.Enum { // enumerations extend System.Enum

}




--
Vladimir Scherbina,
Ukraine, Kiev.

[quoted text, click to view]

RE: Equivalent of enum in J# Rahuly.vjcr NO[at]SPAM online.microsoft.com
4/23/2004 3:37:54 PM
Hi,
enum value type is not supported in Visual Studio .NET 2003.
In next VS version, enum value type is being supported.

Thank,
Rahul
VJ# Team


--------------------
[quoted text, click to view]


[quoted text, click to view]
Re: Equivalent of enum in J# Lars-Inge Tønnessen
4/23/2004 3:54:58 PM

[quoted text, click to view]

Java (J#) does not support C/C++-style enum.

http://java.sun.com/developer/Books/shiftintojava/page1.html
http://www.javaworld.com/javaworld/javatips/jw-javatip122.html


Lars-Inge Tønnessen
www.larsinge.com

RE: Equivalent of enum in J# diganta.vjcr NO[at]SPAM online.microsoft.com
9/8/2004 11:03:45 AM
In Visual Studio .Net 2005, you can declare enums in J#, it would look
something like

public enum MyColors
{
Red(100),Green(10000),Blue(30000);
}

Currently Visual Studio .Net 2005 is in Beta and due to release next year.
You can install J# Redist 2.0 Beta1 from
http://www.microsoft.com/downloads/details.aspx?familyid=90cef3f3-9eaf-4d41-
bad3-9f44fe8e5e81&displaylang=en

Thanks,
Diganta Roy
Microsoft Visual J# .NET Product Team

This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

--------------------
[quoted text, click to view]
AddThis Social Bookmark Button