HighTechTalks DotNet Forums  

Equivalent of enum in J#

Dotnet VJSharp microsoft.public.dotnet.vjsharp


Discuss Equivalent of enum in J# in the Dotnet VJSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Anonymous
 
Posts: n/a

Default Equivalent of enum in J# - 04-23-2004 , 02:36 AM






What is the equivalent of enum in J#



Reply With Quote
  #2  
Old   
Vladimir Scherbina
 
Posts: n/a

Default Re: Equivalent of enum in J# - 04-23-2004 , 07:57 AM






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.

"Anonymous" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
What is the equivalent of enum in J#?





Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default RE: Equivalent of enum in J# - 04-23-2004 , 11:37 AM



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


--------------------
Quote:
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 (AT) discussions (DOT) 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 (AT) microsoft (DOT) 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#?

Quote:


Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default RE: Equivalent of enum in J# - 09-08-2004 , 07:03 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/d...3f3-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

--------------------
Quote:
X-Tomcat-ID: 485594218
References: <FF7E62FF-AE0C-4C85-8F97-2A955C4B44CB (AT) microsoft (DOT) com
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
From: Rahuly.vjcr (AT) online (DOT) 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 (AT) cpmsftngxa10 (DOT) 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 (AT) discussions (DOT) 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 (AT) microsoft (DOT) 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#?







Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.