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] >X-Tomcat-ID: 485594218
>References: <FF7E62FF-AE0C-4C85-8F97-2A955C4B44CB@microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain
>Content-Transfer-Encoding: 7bit
>From: Rahuly.vjcr@online.microsoft.com (RAHUL YADAV)
>Organization: Microsoft
>Date: Fri, 23 Apr 2004 15:37:54 GMT
>Subject: RE: Equivalent of enum in J#
>X-Tomcat-NG: microsoft.public.dotnet.vjsharp
>Message-ID: <3vykejUKEHA.3564@cpmsftngxa10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.vjsharp
>Lines: 29
>Path: cpmsftngxa10.phx.gbl
>Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.vjsharp:5954
>NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
>
>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
>
>
>--------------------
>>Thread-Topic: Equivalent of enum in J#
>>thread-index: AcQo/T8VQ/BPiSBcSpyevUfC0AyEcQ==
>>X-WN-Post: microsoft.public.dotnet.vjsharp
>>From: =?Utf-8?B?QW5vbnltb3Vz?= <anonymous@discussions.microsoft.com>
>>Subject: Equivalent of enum in J#
>>Date: Thu, 22 Apr 2004 23:36:02 -0700
>>Lines: 3
>>Message-ID: <FF7E62FF-AE0C-4C85-8F97-2A955C4B44CB@microsoft.com>
>>MIME-Version: 1.0
>>Content-Type: text/plain;
>> charset="Utf-8"
>>Content-Transfer-Encoding: 7bit
>>X-Newsreader: Microsoft CDO for Windows 2000
>>Content-Class: urn:content-classes:message
>>Importance: normal
>>Priority: normal
>>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>>Newsgroups: microsoft.public.dotnet.vjsharp
>>Path: cpmsftngxa10.phx.gbl
>>Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.vjsharp:5950
>>NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
>>X-Tomcat-NG: microsoft.public.dotnet.vjsharp
>>
>>What is the equivalent of enum in J#?
>
>
>>
>
>