Search code examples
c#iisenumsenumerationenumset

using enum with large set of items c#


h every body im using enum in c#.net and my set of data is about 300 items
in iis on windows 10:
when i use enum like this:

enum EnumSet{
   item1,item2,... item300
}
switch enumset{
 case EnumSet.Item1:
    {
       //Do something
       break;
    }
...
}

the Result is wrong and when i use like this

enum EnumSet{
   item1=1,item2=2,... item300=300
}
switch enumset{
 case EnumSet.Item1:
    {
       //Do something
       break;
    }
...
}

the answer change and also is wrong to :-)

i try to trace problem in iis express its work correctly on that and program always happen when i am testing on iis
can every body help me?


Solution

  • my program solved
    i just add new application in iis and problem sovled