No announcements
Found 3331013 threads
-
1 Votes
Is it possible to forwards declare an enum?
Declaring the enum type does not consume any space in your executable.Answered | 4 Replies | 10231 Views | Created by _roberto_ - Monday, June 11, 2012 8:59 PM | Last reply by Stephan T. Lavavej - MSFT - Thursday, June 14, 2012 7:12 PM -
1 Votes
Design question: Default value for enum
Hi Venkat, It is good to have an enum with default value and it depends on your need as well.Answered | 8 Replies | 2588 Views | Created by Venk K - Tuesday, November 20, 2012 12:09 AM | Last reply by JMCF125 - Tuesday, November 20, 2012 3:50 PM -
10 Votes
Nullable enum verse enum.None
However, by using nullables, you now have to check for that whenever you deal with an enum value in the code (on top of already dealing with outofrange enum ...Answered | 11 Replies | 24712 Views | Created by Tekito - Wednesday, May 26, 2010 3:30 PM | Last reply by Dig-Boy - Thursday, May 27, 2010 2:29 PM -
2 Votes
Enum !
I realize that boxing and unboxing the values is costly but I wanted to have a generic class using a generic parameter that was an Enum, unfortunately C# does not ...Answered | 10 Replies | 4150 Views | Created by ellipsisware - Wednesday, April 13, 2011 6:21 PM | Last reply by James Michael Hare - Saturday, April 16, 2011 1:23 AM -
0 Votes
enum
For example, the following enumeration contains a set of titles: ' VB Enum Titles As Integer Mr Ms Mrs ...Answered | 5 Replies | 3579 Views | Created by sateesh1234 - Saturday, July 10, 2010 12:43 PM | Last reply by Sachin bhosale - Wednesday, July 14, 2010 7:35 AM -
0 Votes
Is it possible to preserve enum semantics over XmlSerialization, when non-default enum values are declared server side?
User-2027985085 posted Solved - somewhere deep in the code there were properties that were declared as int rather than the enum (Doh!!Answered | 3 Replies | 23 Views | Created by Anonymous - Tuesday, October 21, 2014 12:31 PM | Last reply by Anonymous - Wednesday, October 22, 2014 4:27 AM -
2 Votes
Enum
Please get the answer why use enum?Answered | 2 Replies | 1853 Views | Created by Kumar Jalli - Wednesday, August 1, 2012 12:06 PM | Last reply by Sambath Raj.C - Wednesday, August 1, 2012 1:11 PM -
0 Votes
Enums
Hi again, Here you have a sample code: public enum Group : int { Hour=24, Day=31 ,Week=7, Month=12 ...Answered | 5 Replies | 4671 Views | Created by Anatoliy50 - Friday, May 20, 2011 8:45 AM | Last reply by JA Reyes - Friday, May 20, 2011 12:18 PM -
0 Votes
Recomended replacement for enums?
Mapper requirements leak all over the place.Answered | 5 Replies | 6729 Views | Created by Roger Alsing - Saturday, May 30, 2009 7:28 AM | Last reply by Alex D James - MSFT - Sunday, June 7, 2009 4:40 PM -
0 Votes
enum default type options
If you could change the code you could use enum fruit : char{ apple, banana, orange }; This is a non-standard extension to C++03 that ...Answered | 1 Replies | 636 Views | Created by Romko Ivasyshyn - Tuesday, September 15, 2015 12:35 PM | Last reply by SimonRev - Tuesday, September 15, 2015 1:58 PM -
3 Votes
adding a value in enum programmatically ?
An enum is very useful to declare a type-safe identifier instead of using a plain number.Answered | 3 Replies | 7038 Views | Created by Haansi - Sunday, October 18, 2009 5:56 PM | Last reply by nobugz - Sunday, October 18, 2009 6:53 PM -
14 Votes
Using Enums
I'd get tired really fast for saying the same thing over and over again in each one of my posts but amazingly this guy keeps on banging the same drum.Answered | 27 Replies | 3697 Views | Created by obrienkev - Thursday, March 1, 2012 4:38 PM | Last reply by Eyal Solnik - Thursday, April 12, 2012 1:45 PM -
3 Votes
wcf enum backward compatibility
if enums are serialized as strings, then why couldn't a surrogate be used only on the server side to deserialize it as a string and not an enum which has the ...Answered | 13 Replies | 11496 Views | Created by JSojourn - Monday, June 14, 2010 7:09 PM | Last reply by agnostic - Wednesday, September 25, 2013 12:59 PM -
0 Votes
return enum value
It accepts a value to attempt to parse, as well as where the value should go if the parsing is successful.Answered | 8 Replies | 1031 Views | Created by LandLord323 - Friday, April 25, 2014 4:05 PM | Last reply by LandLord323 - Friday, April 25, 2014 4:47 PM -
14 Votes
Enum in Sql server
It is possible...Answered | 7 Replies | 119931 Views | Created by bahushekh - Tuesday, July 31, 2012 4:54 AM | Last reply by Thiago Daher (LuizaLabs) - Monday, September 11, 2017 8:43 PM -
0 Votes
Serialize /Deserialize XmlAttribute with Enum values and some default
When you want to serialise, you iterate the list and foreach you add an xelement colProperty.Answered | 4 Replies | 649 Views | Created by Eladhalp - Wednesday, May 4, 2016 12:48 PM | Last reply by Eladhalp - Saturday, May 7, 2016 5:59 AM -
0 Votes
Working with enums
The set of values that an enum type can take on is not limited by its enum members.Answered | 2 Replies | 3261 Views | Created by Ananth Rohit - Thursday, February 18, 2010 11:13 AM | Last reply by Saravanan Muthiah - Friday, February 19, 2010 10:59 AM -
2 Votes
enum values
What you can do is call Enum.Parse: PictureBox1.SizeMode = DirectCast([Enum].Parse(GetType(sizeMode), fields(4)), PictureBoxSizeMode)Answered | 2 Replies | 2943 Views | Created by .paul. _ - Saturday, May 23, 2009 7:47 PM | Last reply by .paul. _ - Saturday, May 23, 2009 8:49 PM -
10 Votes
Enum=Integer?
I have my Visual Studio IDE set to Option Strict ON by default, but for some reason it behaves a little differently when I include it as a declaration ...Answered | 14 Replies | 8543 Views | Created by Tekito - Thursday, September 24, 2009 1:53 PM | Last reply by Andrew B. Painter - Thursday, September 24, 2009 7:50 PM -
0 Votes
Variable Enum?
If your custom control exposes the property DecimalPlaces as an integer, then the property value can be set as any integer value, and the property box will accept an integer as ...Answered | 2 Replies | 649 Views | Created by General_Fear - Thursday, May 30, 2013 2:34 PM | Last reply by Acamar - Thursday, May 30, 2013 10:59 PM - Items 1 to 20 of 3331013 Next ›
No announcements