0
C# Static method
How to write a static method that contains a static integer such that the first time it within a running program it returns 0 and each subsequent time is called it returns a number that greater than by 1 what it returned for the previous call.
2 Respostas
0
Static members will be called once in the program execution.. so static members will be initialized once. Not like instance members , instance members initialized whenever you create object