1
Vote

Create an AutoLock Property for Methods

description

This is a wild, probably silly, idea, but it would be fun (more than anything) to pull of.
 
Basically, the idea is simple:
 
[Lock]
public void SomeMethod() { }
 
So if someone calls it, it would automatically add the "locK" semantics around this method call, whether it's static or instance.
 
Again, this is fraught with issues, but it would be fun to see how far I could push it.

comments