I'm working on cross platform .net standard 2.0 library (targeting Windows, iOS, Android).
There is some operation that I need to perform only once on the local machine.
If (!MethodAExecuted)
{
MethodA();
MethodAExecuted = true;
}
What I can do to achieve such behaviour in cross platform way?