Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The code

C#
private static ManualResetEvent mre = new ManualResetEvent(false);


But by MSDN

It is not possible to create instances of a static class using the new keyword.


What I have tried:

Not sure the concept. Some examples have static, other not. Confused.
Posted
Updated 13-Sep-17 16:46pm
v2

1 solution

That's because ManualResetEvent is NOT a static class.

In your example, the variable holding the instance you created, mre, is a static member[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900