-
Use C# to turn on the 4th and 7th bits
Use C# to turn on the 4th and 7th bits of a said byte myFlag, in which right most bit is first bit.Answer[Flags] enum BitFlags : byte { One = (1
-
Write a class in C# which get an action in its construction
Write a class in C# which get an action (parameter less delegate) in its construction and has a single public method ‘bool execute()’ which does following: 1. Execute the action only if no other thread is currently executing the action.2. If another thread is already executing, wait until thread finished before returning (but without executing action again)3. Return true if current thread that action,...