Rehman Shahid
What is the role of [Flag] attribute in enums?
By Rehman Shahid in C# on Feb 17 2019
  • Priyanka Jain
    Jul, 2019 4

    The [Flag] attribute is used when Enum represents a collection of multiple possible values rather than a single value.

    • 2
  • Sandy New
    Sep, 2019 25

    All the possible combination of values will come.

    For Example:-
    enum a={1,2,3,4}

    4*4 combination will occur

    • 0
  • Bidyasagar Mishra
    Aug, 2019 4

    The [Flags] attribute should be used whenever the enumerable represents a collection of possible values, rather than a single value.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS