What is the use of flag in c#?



What is the use of flag in c#?..

Answer / Vikash Singh

In C#, a flag is an enumeration used to represent a set of related values. Flags allow you to combine multiple values from an enumeration using bitwise operators.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Write down the c# syntax to catch an exception

1 Answers  


What is the use of the dispose method in C# ?

1 Answers   Infosys,


Why do we need constructors?

1 Answers  


How to implement delegates in c#.net

1 Answers  


What is typeof undefined?

1 Answers  


What is the CTS, and how does it relate to the CLS?

1 Answers   Arigo Infotech,


What is use of private class in c#?

1 Answers  


What is the default scope of a class in c#?

1 Answers  


Method1() { int a=0, b=0, c=0; Monitor.Enter(this) c = 12; b = 3; a = c/b Moniter.Exit(this) } Method1() { int a=0, b=0, c=0; c = 12; b = 3; lock(this){ a = c/b } } Choose correct answer. a. Upon completion, Method1 and Method2 release the lock b. Upon Comletion, Method1 release the lcok and Method2 not. c. Upon Completion, Method2 release the lock and Method1 not. d. Upon Completion, neither Method1 or Method to release the lock.

1 Answers  


What do you mean by winforms in c#?

1 Answers  


Is clr a compiler?

1 Answers  


Can var be null c#?

1 Answers  


Categories