Click here to Skip to main content
15,910,471 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can I use the Cabinet.dll in c# Pin
Heath Stewart14-Jan-04 3:22
protectorHeath Stewart14-Jan-04 3:22 
Generalpassing data to installer class Pin
econnor12-Jan-04 11:07
econnor12-Jan-04 11:07 
GeneralRe: passing data to installer class Pin
Heath Stewart13-Jan-04 2:45
protectorHeath Stewart13-Jan-04 2:45 
GeneralRe: passing data to installer class Pin
econnor13-Jan-04 3:58
econnor13-Jan-04 3:58 
GeneralRe: passing data to installer class Pin
econnor13-Jan-04 5:40
econnor13-Jan-04 5:40 
GeneralRe: passing data to installer class Pin
Heath Stewart13-Jan-04 5:43
protectorHeath Stewart13-Jan-04 5:43 
GeneralFlushFinalBlock problem in my cryptography Pin
Mazdak12-Jan-04 10:28
Mazdak12-Jan-04 10:28 
GeneralRe: FlushFinalBlock problem in my cryptography Pin
Heath Stewart12-Jan-04 10:37
protectorHeath Stewart12-Jan-04 10:37 
GeneralRe: FlushFinalBlock problem in my cryptography Pin
Mazdak12-Jan-04 22:36
Mazdak12-Jan-04 22:36 
GeneralRe: FlushFinalBlock problem in my cryptography Pin
Heath Stewart13-Jan-04 2:50
protectorHeath Stewart13-Jan-04 2:50 
GeneralRe: FlushFinalBlock problem in my cryptography Pin
Mazdak13-Jan-04 2:56
Mazdak13-Jan-04 2:56 
GeneralRe: FlushFinalBlock problem in my cryptography Pin
Heath Stewart13-Jan-04 3:00
protectorHeath Stewart13-Jan-04 3:00 
GeneralRe: FlushFinalBlock problem in my cryptography Pin
Mazdak13-Jan-04 4:02
Mazdak13-Jan-04 4:02 
GeneralEntering Text on an Image Pin
JayTheK12-Jan-04 10:08
JayTheK12-Jan-04 10:08 
GeneralRe: Entering Text on an Image Pin
Niels Penneman12-Jan-04 10:14
Niels Penneman12-Jan-04 10:14 
GeneralObject property with different return types Pin
Articus12-Jan-04 7:13
Articus12-Jan-04 7:13 
GeneralRe: Object property with different return types Pin
leppie12-Jan-04 8:16
leppie12-Jan-04 8:16 
GeneralRe: Object property with different return types Pin
Articus12-Jan-04 22:41
Articus12-Jan-04 22:41 
GeneralRe: Object property with different return types Pin
leppie13-Jan-04 6:16
leppie13-Jan-04 6:16 
GeneralRefresh TreeView in Place Pin
webdudeIA12-Jan-04 5:24
webdudeIA12-Jan-04 5:24 
GeneralRe: Refresh TreeView in Place Pin
Heath Stewart12-Jan-04 8:48
protectorHeath Stewart12-Jan-04 8:48 
GeneralRe: Refresh TreeView in Place Pin
webdudeIA12-Jan-04 10:17
webdudeIA12-Jan-04 10:17 
GeneralEnumerations Pin
Anonymous12-Jan-04 4:10
Anonymous12-Jan-04 4:10 
GeneralRe: Enumerations Pin
Colin Angus Mackay12-Jan-04 5:56
Colin Angus Mackay12-Jan-04 5:56 
Anonymous wrote:
public enum e {Val1="1,2,3,4", Val2="5,6,7,8"};

The reason this does not work is because enum is intrinsically an int.


Anonymous wrote:
int[] x = (int[])e.Val2

Even if e.Val2 returned a string this code would not work because it is not possible to directly convert a string to an array of ints.

An idea might be to set up an array of arrays that map to the enum:
public enum e{Val1 = 0, Val2=1}

// Maps to some array

int[] x = (int[])myArray[(int)e];




--Colin Mackay--

EuroCPian Spring 2004 Get Together[^]


GeneralRe: Enumerations Pin
Niels Penneman12-Jan-04 5:58
Niels Penneman12-Jan-04 5:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.