I would recommend NOT .
Static in Visual Basic means that one or more declared local variables must continue to exist and retain their last values ββafter the procedure in which they are declared is completed. Link: https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/modifiers/static
So why are you doing this? The next time you enter this Sub, you will still be reinitializing this variable. I donβt think you can even access it if you donβt have a second instance of this class, and if both instances are running at the same time, the value of βaβ can affect the value of βaβ in the second example. If it was not intended, it would be a disaster. As stated in the previous answer, the smaller the volume, the better.
So, if I'm not mistaken, this will be a very bad practice.
source share