Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function CalcSomething(ByVal input as Single)
- CalcSomething = ... <some math using 'input'>
- End Function
- 'other functions exist also...
- static class A
- {
- private static Calc calc1 = new Calc();
- public GetCalc() => calc1;
- }
- ...
- A.GetCalc.CalcSomething(1234); // CRASH!
- static class A
- {
- public GetCalc() => new Calc();
- }
- ...
- A.GetCalc.CalcSomething(1234); // NO CRASH.
Add Comment
Please, Sign In to add comment