I have a method and inside this method I have a block:
public void method()
{
[block instructions]
}
But this method is called twice in my program. I would like this block to be executed only one time and only for the first occurrence of the method. What would be the best and elegant way to do that?
1 Answer