Quantcast
Channel: injectors Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 5

Created Feature: Create a MaximumCall Attribute [10214]

$
0
0
This would be for methods, like this:

[MaximumCall(1)]
public void SomeMethod() { }

Code would be added to ensure the method was called only once.

This would be interesting as this could enforce a singleton:

[MaximumCall(1)]
public MyClass() { }

If you tried to create more than one MyClass, it would fail.

Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>