dcsimg
 

Submitted by: Srinath M S(srinath_ms@yahoo.com)

Wednesday Sep 5th 2018 by Srinath M S

Language: .NET, Expertise: Intermediate - Have you felt a need for enums to have composite values? See how to make that happen.

Have you felt a need for enums to have composite values?

They can be defined internally within the enum as below:

Public enum livingObjects {

Humans,

Animals,

Plants,

All = Humans | Animals | Plants

}
Home
Mobile Site | Full Site
Copyright 2018 © QuinStreet Inc. All Rights Reserved