No announcements
Found 3440225 threads
-
14 Votes
Using Enums
Try using any enum E where another type T is expected, and you should get an error, unless an implicit conversion exists from E to T.Answered | 27 Replies | 3967 Views | Created by obrienkev - Thursday, March 1, 2012 4:38 PM | Last reply by Eyal Solnik - Thursday, April 12, 2012 1:45 PM -
2 Votes
Enum !
Since Enum is the base class of all Enums, it can't compare the specific subclasses since a super-class should never know about the sub-class implementations.Answered | 10 Replies | 4424 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
C# Is there a way to use Enum in string?
They belong to completely different concepts.Answered | 6 Replies | 1319 Views | Created by iHandler - Wednesday, June 3, 2020 3:01 AM | Last reply by Timon Yang - Wednesday, June 3, 2020 7:22 AM -
1 Votes
Using enums
However, the enum values must each only occupy a single bit.Answered | 6 Replies | 2783 Views | Created by CanAnn - Monday, February 21, 2011 10:38 PM | Last reply by CanAnn - Tuesday, February 22, 2011 10:46 PM -
7 Votes
Why use Enum?
I understand now why & how to use ENUM.Answered | 9 Replies | 5122 Views | Created by Lord Odyssey - Wednesday, November 10, 2010 5:00 AM | Last reply by Lord Odyssey - Thursday, November 11, 2010 2:50 PM -
14 Votes
Enum in Sql server
Simple enums uses only one option in its value definition.Answered | 7 Replies | 134855 Views | Created by bahushekh - Tuesday, July 31, 2012 4:54 AM | Last reply by Thiago Daher (LuizaLabs) - Monday, September 11, 2017 8:43 PM -
1 Votes
Using String Enums in switch
As for the switch statement, you need a constant so use the enum values in the case and do the conversion on the expression.Answered | 6 Replies | 10522 Views | Created by Fabio A M Santos - Wednesday, April 18, 2018 11:02 AM | Last reply by CoolDadTx - Wednesday, April 18, 2018 3:58 PM -
0 Votes
enum
Use enumerations to provide a list of choices for developers using your class.Answered | 5 Replies | 3860 Views | Created by sateesh1234 - Saturday, July 10, 2010 12:43 PM | Last reply by Sachin bhosale - Wednesday, July 14, 2010 7:35 AM -
1 Votes
Enums
You want me to write something that shows the entire concept working?Answered | 7 Replies | 2979 Views | Created by adilahmed - Saturday, July 26, 2008 3:20 PM | Last reply by John Anthony Oliver - Tuesday, July 29, 2008 12:31 AM -
0 Votes
Enum
Hello, You could do something like this Public Enum Gender Male = 1 Female Other TransGender End ...Answered | 3 Replies | 1136 Views | Created by Kostaras - Tuesday, March 11, 2014 12:04 PM | Last reply by Kareninstructor - Tuesday, March 11, 2014 1:30 PM -
2 Votes
Enum
Please get the answer why use enum?Answered | 2 Replies | 2106 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 | 4918 Views | Created by Anatoliy50 - Friday, May 20, 2011 8:45 AM | Last reply by JA Reyes - Friday, May 20, 2011 12:18 PM -
1 Votes
Enums
No, in the implementation of the IsValueType property there is a special logic which checks if type is an enum type and returns false if it is.Answered | 3 Replies | 3500 Views | Created by Ananth Rohit - Tuesday, February 16, 2010 11:12 AM | Last reply by SamAgain - Wednesday, February 24, 2010 6:49 AM -
0 Votes
Using :: to select enum options = Warning ?
Considering the scope problem of enum's, I tend to use a common prefix for the enum items, e.g.Answered | 7 Replies | 4052 Views | Created by Mel_3 - Thursday, May 3, 2012 1:44 PM | Last reply by Tim Roberts - Friday, May 4, 2012 4:44 AM -
0 Votes
Associate an enum with specific situations
I use them for that purpose more than Use them for type safety.Answered | 3 Replies | 762 Views | Created by Ethan Strauss - Friday, June 9, 2017 8:11 PM | Last reply by Captain Kernel - Monday, June 19, 2017 8:22 PM -
1 Votes
Need help to use enums in class
The MSDN is best for these problems: http://msdn.microsoft.com/en-us/library/sbbt4032(VS.80).aspx Please mark the post as answer if it is helpfull ...Answered | 2 Replies | 2953 Views | Created by Venkat Chilkuri - Thursday, August 20, 2009 6:07 AM | Last reply by _SuDhiR_ - Thursday, August 20, 2009 6:17 AM -
3 Votes
Which AttributeTarget is used for values in an enum?
Type Enum, is inherited from System.ValueType and is limited to be Integral Types.Answered | 7 Replies | 9676 Views | Created by Moby Disk - Thursday, February 5, 2009 9:09 PM | Last reply by David M Morton - Friday, February 6, 2009 5:27 PM -
1 Votes
Java Enum Verses C# Enum
No it is not like a java enum.Answered | 1 Replies | 2906 Views | Created by Borneq - Thursday, December 15, 2011 9:12 PM | Last reply by OmegaMan - Monday, December 19, 2011 3:39 PM -
2 Votes
Get Enum Value using Microsoft.FxCop.sdk
Would you mind letting us know the result of the suggestions?Answered | 4 Replies | 7222 Views | Created by AceHack - Wednesday, September 7, 2011 11:25 PM | Last reply by Mike Dos Zhang - Tuesday, September 13, 2011 8:33 AM -
0 Votes
C# concepts (When to use what)
We have lots of material over net and books talking about C# concepts and How to use it with example.Answered | 2 Replies | 643 Views | Created by Anil kumarG - Monday, November 17, 2014 11:44 AM | Last reply by Dan Randolph - Monday, November 17, 2014 7:18 PM - Items 1 to 20 of 3440225 Next ›
No announcements